From 24bebab6b8739e358df45a69fd302f49251d4fb2 Mon Sep 17 00:00:00 2001 From: Matthew Welch Date: Sun, 29 Aug 2021 16:00:11 -0700 Subject: [PATCH] Change database connection for development --- QuizTheWord/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/QuizTheWord/config.py b/QuizTheWord/config.py index a5cf603..e7e1f87 100644 --- a/QuizTheWord/config.py +++ b/QuizTheWord/config.py @@ -28,7 +28,12 @@ class Development(Config): FLASK_ENV = "development" DEBUG = True TESTING = True - DB_URL = f"postgresql+psycopg2://{Config.DB_USER}:{Config.DB_PASSWORD}@{Config.DB_HOST}:{Config.DB_PORT}/{Config.DB_NAME}" + DB_USER = "postgres" + DB_PASSWORD = "hello" + DB_HOST = "localhost" + DB_NAME = "postgres" + DB_PORT = 5432 + DB_URL = f"postgresql+psycopg2://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}" class Testing(Config):