From 09fe77df3e682d7bb813e84ebcb9edd3e41b61d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 31 Aug 2017 09:10:05 +0000 Subject: [PATCH] Change config to allow local settings --- lejaune/settings.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lejaune/settings.py b/lejaune/settings.py index 19933e9..872324e 100644 --- a/lejaune/settings.py +++ b/lejaune/settings.py @@ -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')