Answers for "how to start flask without command line"

5

flask how to run app

$ export FLASK_APP=hello.py
$ python -m flask run
 * Running on http://127.0.0.1:5000/
Posted by: Guest on April-03-2020
0

flask commands

# 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()
Posted by: Guest on May-16-2020

Code answers related to "how to start flask without command line"

Python Answers by Framework

Browse Popular Code Answers by Language