By RAMartinezR
Hi,
I am following the tutorial How to Make A Web Application using Flask (https://www.digitalocean.com/community/tutorials/how-to-make-a-web-application-using-flask-in-python-3) but I’ve encountered a problem. I am using nano and Python 3 in Windows PowerShell after installation and environment set up as explained in another article linked to the prerequisites of this one but I have run into instances in which commands are not supported by Windows PowerShell like “source” and “export”. I was able to work around the source command and activate my environment similar to how it was explained in the other article I am referring to but didn’t have much luck trying to work around the export command. Is the article using a different shell and that’s the reason I am having these issues? Am I missing something? Is there a way around these issues? I haven’t continued reading but I imagine it will be an issue throughout the article if I am doing something incorrectly.
Thanks in advance.
Regards, Rafael
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @RAMartinezR,
For PowerShell the equivelent of export would look like this:
> $env:FLASK_APP = "hello"
For more information you could take a look at the official Flask CLI documentation here:
https://flask.palletsprojects.com/en/1.1.x/cli/
Let me know how it goes! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.