Skip to content

Commit

Permalink
Add database configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Nov 26, 2023
1 parent a954358 commit fc666a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sibyl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases

print(os.environ)
print("DATABASE_URL" in os.environ)
print(os.getenv("DATABASE_URL"))

DATABASES = {
'default': dj_database_url.parse(os.getenv("DATABASE_URL")) if "DATABASE_URL" in os.environ else {
"ENGINE": 'django.db.backends.sqlite3',
Expand Down

0 comments on commit fc666a9

Please sign in to comment.