flask commands

Solutions on MaxInterview for flask commands by the best coders in the world

showing results for - "flask commands"
Emilio
04 Jun 2020
1# For bash do this:
2set FLASK_APP=<app_name>
3
4# For powershell do this:
5$env FLASK_APP=<app_name>
6
7# Run it like this
8flask run
Christian
27 Nov 2016
1# manage.py
2
3from flask_script import Manager
4
5from myapp import app
6
7manager = Manager(app)
8
9@manager.command
10def hello():
11    print "hello"
12
13if __name__ == "__main__":
14    manager.run()
15
similar questions
queries leading to this page
flask commands