Browse Source

Change config to allow local settings

master
Théophile Bastian 5 years ago
parent
commit
09fe77df3e
  1. 10
      lejaune/settings.py

10
lejaune/settings.py

@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/1.11/ref/settings/ @@ -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 @@ -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 @@ -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')

Loading…
Cancel
Save