from app import my_app if __name__ == '__main__': my_app.run()
from app import my_app my_app.run(debug=True) my_app.config["CACHE_TYPE"] = "null"
def start_app(): # Base.metadata.create_all(engine) my_app.run()
#!venv/bin/python from app import my_app my_app.run(debug=True)
from db_setup import db_sql # Import here to avoid the circular imports from app import my_app # This is a Flask decorator it is not from flask_restful @my_app.before_first_request def setup_db(): db_sql.create_all() db_sql.init_app(my_app) # Only run this if we are executing this script directly. Ensures that it does not fire with hosted in Heroku if __name__ == '__main__': my_app.run(port=5555)
from app import my_app if __name__ == "__main__": my_app.run(debug=True, use_reloader=True)