diff --git a/lemoncurry/settings/prod.py b/lemoncurry/settings/prod.py index 170cb92..18614fb 100644 --- a/lemoncurry/settings/prod.py +++ b/lemoncurry/settings/prod.py @@ -1,12 +1,18 @@ +from os import environ + from .base import * from .base import DATABASES ALLOWED_HOSTS = ['00dani.me'] +DEBUG = False +SECRET_KEY = environ['DJANGO_SECRET_KEY'] + +# Use Postgres instead of SQLite in production. DATABASES['default'] = { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'lemoncurry', 'USER': 'lemoncurry', } -DEBUG = False + STATIC_URL = 'https://cdn.00dani.me/' MEDIA_URL = STATIC_URL + 'media/'