PrettyPrinted / youtube_video_code

The code for all the YouTube videos I publish on YouTube.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What command do you use to run the Flask project

tejaskj opened this issue · comments

I am using the below command and it is throwing an error -
flask --app .\app.py --debug run

The Error -
` * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: Failed to find Flask application or factory in module 'login_app_demo.app'. Use 'login_app_demo.app:name' to specify one.`

Run pip install python-dotenv to install the package. After that to run the app use the command flask run

I got it working. I found decouple-python to work better that the above package