From 9a27eb025d1147b4944c469bfac0c5f3b010074b Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Thu, 13 Jun 2024 12:20:10 +0200 Subject: [PATCH] updated settings file to use postgress --- app/app/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/app/settings.py b/app/app/settings.py index 26b59e85..88064c6b 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -108,6 +108,7 @@ "NAME": os.environ.get("DB_NAME"), "USER": os.environ.get("DB_USER"), "PASSWORD": os.environ.get("DB_PASSWORD"), + "TEST": {"NAME": "test_db"}, } } @@ -122,9 +123,6 @@ "host.docker.internal", ] -# Check if the application is under testing -if "test" in sys.argv or "test_coverage" in sys.argv: # Covers regular testing and django-coverage - DATABASES["default"]["ENGINE"] = "django.db.backends.sqlite3" # Password validation # https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators