Michael
0
Q:

flask commands

# For bash do this:
set FLASK_APP=<app_name>

# For powershell do this:
$env FLASK_APP=<app_name>

# Run it like this
flask run
1
# manage.py

from flask_script import Manager

from myapp import app

manager = Manager(app)

@manager.command
def hello():
    print "hello"

if __name__ == "__main__":
    manager.run()
0

New to Communities?

Join the community