From f441fc3ecdb0adc58020e29d9479c259249a2a46 Mon Sep 17 00:00:00 2001 From: TechStudent11 <76978184+TechStudent11@users.noreply.github.com> Date: Mon, 19 Jul 2021 18:36:42 -0400 Subject: [PATCH] Get rid of SQLAlchemy warning messages --- tutorial5/website/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorial5/website/__init__.py b/tutorial5/website/__init__.py index 89f1aaa..e534217 100644 --- a/tutorial5/website/__init__.py +++ b/tutorial5/website/__init__.py @@ -11,6 +11,7 @@ def create_app(): app = Flask(__name__) app.config['SECRET_KEY'] = "helloworld" app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_NAME}' + app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db.init_app(app) from .views import views