Merge branch 'production_example' into 'master'

Production settings empty

See merge request !5
This commit is contained in:
Tyrel Souza 2017-04-01 18:27:00 +00:00
commit 98c57a0f30
2 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@ -56,7 +56,6 @@ venv
*.iws
stagestatus/settings/local.py
stagestatus/settings/production.py
# collect static output directory
stagestatus/assets/

View 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': '',
}
}