Skip to content

Commit

Permalink
Added DB configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mghaznav committed Jul 10, 2024
1 parent f18f335 commit b2be589
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Empty file modified app/app/__init__.py
100644 → 100755
Empty file.
Empty file modified app/app/asgi.py
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions app/app/settings.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/3.2/ref/settings/
"""

import os
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -75,8 +76,11 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.beckends.postgresql',
'HOST': os.environ.get('DB_HOST'),
'NAME': os.environ.get('DB_NAME'),
'USER': os.environ.get('DB_USER'),
'PASSWORD': os.environ.get('DB_PASS')
}
}

Expand Down
Empty file modified app/app/urls.py
100644 → 100755
Empty file.
Empty file modified app/app/wsgi.py
100644 → 100755
Empty file.

0 comments on commit b2be589

Please sign in to comment.