forked from 00dani/lemoncurry
Set the production SECRET_KEY from the environment
This commit is contained in:
parent
c506a0bad9
commit
2c42a69f19
1 changed files with 7 additions and 1 deletions
|
@ -1,12 +1,18 @@
|
||||||
|
from os import environ
|
||||||
|
|
||||||
from .base import *
|
from .base import *
|
||||||
from .base import DATABASES
|
from .base import DATABASES
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['00dani.me']
|
ALLOWED_HOSTS = ['00dani.me']
|
||||||
|
DEBUG = False
|
||||||
|
SECRET_KEY = environ['DJANGO_SECRET_KEY']
|
||||||
|
|
||||||
|
# Use Postgres instead of SQLite in production.
|
||||||
DATABASES['default'] = {
|
DATABASES['default'] = {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
'NAME': 'lemoncurry',
|
'NAME': 'lemoncurry',
|
||||||
'USER': 'lemoncurry',
|
'USER': 'lemoncurry',
|
||||||
}
|
}
|
||||||
DEBUG = False
|
|
||||||
STATIC_URL = 'https://cdn.00dani.me/'
|
STATIC_URL = 'https://cdn.00dani.me/'
|
||||||
MEDIA_URL = STATIC_URL + 'media/'
|
MEDIA_URL = STATIC_URL + 'media/'
|
||||||
|
|
Loading…
Reference in a new issue