Merge branch 'production_example' into 'master'
Production settings empty See merge request !5
This commit is contained in:
commit
98c57a0f30
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -56,7 +56,6 @@ venv
|
|||
*.iws
|
||||
|
||||
stagestatus/settings/local.py
|
||||
stagestatus/settings/production.py
|
||||
|
||||
# collect static output directory
|
||||
stagestatus/assets/
|
||||
|
|
21
stagestatus/settings/production.py
Normal file
21
stagestatus/settings/production.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
from .base import * # noqa
|
||||
import os
|
||||
|
||||
|
||||
DEBUG = False
|
||||
TEMPLATES['OPTIONS']['debug'] = DEBUG
|
||||
|
||||
SECRET_KEY = os.environ['SECRET_KEY']
|
||||
|
||||
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost').split(',')
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': os.environ['DB_NAME'],
|
||||
'USER': os.environ['DB_USER'],
|
||||
'PASSWORD': os.environ.get('DB_PASSWORD', ''),
|
||||
'HOST': os.environ.get('DB_HOST', ''),
|
||||
'PORT': '',
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user