snippetbashTip
flask — A general utility script for Flask applications. Loads the application defined in the `$FLASK_APP` e
Viewed 0 times
commandflaskforcligeneralscriptutility
Problem
How to use the
flask command: A general utility script for Flask applications. Loads the application defined in the $FLASK_APP environment variable. More information: <https://flask.palletsprojects.com/en/stable/cli/>.Solution
flask — A general utility script for Flask applications. Loads the application defined in the $FLASK_APP environment variable. More information: <https://flask.palletsprojects.com/en/stable/cli/>.Run a development server:
flask runShow the routes for the app:
flask routesRun a Python interactive shell in the app's context:
flask shellCode Snippets
Run a development server
flask runShow the routes for the app
flask routesRun a Python interactive shell in the app's context
flask shellContext
tldr-pages: common/flask
Revisions (0)
No revisions yet.