Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98422

Running Flask app in vscode - Error: Could not import App

$
0
0

I get this error running a Flask app out of Visual Studio Code (VsCode):

*Serving Flask APP "myWebSite.py"
*Environment: production WARNING:
Do not use the development server in a production environment. Use a production WSGI server instead.
* Debug mode:off Useage: flask run [OPTIONS]

Error: Could not import "myWebSite"


When I run it out of another PC with Visual Studio Code it runs fine. What could it be?

Note: I'm answering my own question to help others in the future.


Viewing all articles
Browse latest Browse all 98422

Trending Articles