From 81644090171836dc05bc8ad175d417a3db2bd654 Mon Sep 17 00:00:00 2001 From: Nicholas C Date: Thu, 9 Mar 2023 21:03:59 +1100 Subject: [PATCH] fix: overflow on homepage and hot reloading --- priceybot2/__init__.py | 5 +++-- priceybot2/templates/base.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 @@ - +