Question

Web Applications with Flask Tutorial: Help Requested

Posted August 24, 2020 164 views
PythonPython FrameworksDevelopmentProgramming Project

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

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.

×
1 answer

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

Submit an Answer