We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7902b25 commit 874d072Copy full SHA for 874d072
promo_code/promo_code/settings.py
@@ -70,8 +70,12 @@ def load_bool(name, default):
70
71
DATABASES = {
72
'default': {
73
- 'ENGINE': 'django.db.backends.sqlite3',
74
- 'NAME': BASE_DIR / 'db.sqlite3',
+ 'ENGINE': 'django.db.backends.postgresql',
+ 'NAME': os.getenv('POSTGRES_DATABASE'),
75
+ 'USER': os.getenv('POSTGRES_USERNAME'),
76
+ 'PASSWORD': os.getenv('POSTGRES_PASSWORD'),
77
+ 'HOST': os.getenv('POSTGRES_HOST', 'localhost'),
78
+ 'PORT': os.getenv('POSTGRES_PORT', '5432'),
79
},
80
}
81
0 commit comments