Joshua Partlow

Results comments of Joshua Partlow

Hi @Mohamedkable - What filename are you using for your Flask app? By default, a Flask looks for app.py, if you use something different then you need to set a...

I've not tried running from Git Bash before, but you should be able to do "echo $FLASK_APP" to verify if the variable has been set correctly.

Hi @Mohamedkable - The help I can offer is around the VS Code docs for our [Flask tutorial](https://code.visualstudio.com/docs/python/tutorial-flask). For general Flask issues I'd suggest looking at the documentation for Flask.

@Dharanya-Subramanian - So, to clarify, the app is running in the VS Code console, but you can't get it to run from a standard windows cmd window?

@Dharanya-Subramanian - If that's the case, you likely just need to create an environment variable in your cmd window prior to running. By default, Flask looks for app.py, if you...

Hi @raeesanjum010 - Are you working through the [VS Code Flask tutorial](https://code.visualstudio.com/docs/python/tutorial-flask)? If you are, generally the solution to that error is to make sure you've explicitly set the FLASK_APP...

Documented now with [0d9ff50](https://github.com/microsoft/vscode-docs/commit/0d9ff50e0b9d06b5a39a7b0a537bcacb61709629 ).

Not sure if there's still a doc action needed here, so closing. If there's work that should still be done, please reopen.

Content updated with PR https://github.com/microsoft/vscode-docs/pull/2739

Content updated with PR https://github.com/microsoft/vscode-docs/pull/2739