flask error: flask.cli.NoAppException: Could not import "app name".
I get the error below whenever I attempt to run my flask app.
flask error: flask.cli.NoAppException: Could not import "app name".
The app name and development mode are been exported from an env file.
Admin
2022-08-09
This error occurs when you have your enviroment variables .env file located in a different directory from your app.py file and python-dotnev is installed.
To fix you have 2 options
- Ether you move your .env file to the same firectory as your app.py file or
- Move your app.py file to the same diretory as your env file.
Similar Content
- FastApi error assert default is, "Path parameters cannot have a default value"
- Django admin auto assign field on model save
- How to change project name on Django
- Vercel django error: ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3
- How to add YouTube plugin to Django CkEditor
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.