diff --git a/priceybot2/__init__.py b/priceybot2/__init__.py index 48956f3..03f8616 100644 --- a/priceybot2/__init__.py +++ b/priceybot2/__init__.py @@ -7,11 +7,12 @@ from .config import db as db_config db = SQLAlchemy() migrate = Migrate() + def create_app(): app = Flask(__name__) app.config['SECRET_KEY'] = '//' app.config["SQLALCHEMY_DATABASE_URI"] = db_config.SQL_URI - + app.config['TEMPLATES_AUTO_RELOAD'] = True db.init_app(app) migrate.init_app(app, db) @@ -25,7 +26,7 @@ def create_app(): @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) - + from . import models with app.app_context(): db.create_all() diff --git a/priceybot2/templates/base.html b/priceybot2/templates/base.html index 69bfdbc..f378aeb 100644 --- a/priceybot2/templates/base.html +++ b/priceybot2/templates/base.html @@ -1,5 +1,5 @@ - +