Skip to content

Commit

Permalink
updated settings file to use postgress
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-gray-tangent committed Jun 13, 2024
1 parent 6a2a1fc commit 9a27eb0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
}

Expand All @@ -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
Expand Down

0 comments on commit 9a27eb0

Please sign in to comment.