Question

Web Applications with Flask Tutorial: Help Requested

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


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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