Change config to allow local settings

This commit is contained in:
Théophile Bastian 2017-08-31 09:10:05 +00:00
parent cc19f19f9f
commit 09fe77df3e
1 changed files with 4 additions and 6 deletions

View File

@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
import os
from .local_settings import *
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -20,14 +22,9 @@ SITE_ID = 1
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'jmmq3j!6kfyk^i4ms2fb)9r67ls3xc&xrfm4h2roaag#rb)z#^'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
DEBUG = False
# Application definition
@ -126,3 +123,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'public', 'static')