Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugorodgerbrown committed Sep 18, 2023
1 parent 8736e46 commit e0e876b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/settings_postgres.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from tests.settings import * # noqa
from .settings import * # noqa
from os import getenv

import dj_database_url

print("DATABASES (before)", DATABASES)
DEFAULT_DATABASE_URL = "postgres://postgres@localhost:5432/django_anonymiser"
DATABASE_URL = getenv("DATABASE_URL", DEFAULT_DATABASE_URL)
print("DATABASES", DATABASES)
print("DATABASE_URL", DATABASE_URL)

DATABASES["default"] = dj_database_url.parse(DATABASE_URL) # noqa: F405
print("DATABASES (after)", DATABASES)

0 comments on commit e0e876b

Please sign in to comment.