Skip to content

Commit

Permalink
Added PostreSQL settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemVasylchuck committed Jul 24, 2023
1 parent f94f243 commit a76589f
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions app/app/settings.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
"""
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.2.20.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
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 +64,11 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.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

0 comments on commit a76589f

Please sign in to comment.