Exemple #1
0
from app import my_app


if __name__ == '__main__':
    my_app.run()
Exemple #2
0
from app import my_app
my_app.run(debug=True)
my_app.config["CACHE_TYPE"] = "null"
Exemple #3
0
def start_app():
    # Base.metadata.create_all(engine)
    my_app.run()
#!venv/bin/python
from app import my_app

my_app.run(debug=True)
Exemple #5
0
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)