Answers for "run flask app from script"


run flask app from script

# I am assuming that you have configured the app name as "app"

if __name__ == "__main__":
Posted by: Guest on September-19-2020

flask commands


from flask_script import Manager

from myapp import app

manager = Manager(app)

def hello():
    print "hello"

if __name__ == "__main__":
Posted by: Guest on May-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language