From 12b66c3b836f016ff7d10133a7da6c8f8eeba319 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Fri, 1 Nov 2019 19:57:15 +0100 Subject: [PATCH] =?UTF-8?q?nettoyage=20param=C3=A8tres=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site_musique/settings/base.py | 4 ---- site_musique/settings/dev.py | 4 ++++ site_musique/settings/prod.py | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/site_musique/settings/base.py b/site_musique/settings/base.py index 71bb22e..ba53c0f 100644 --- a/site_musique/settings/base.py +++ b/site_musique/settings/base.py @@ -12,9 +12,6 @@ https://docs.djangoproject.com/en/1.11/ref/settings/ import os -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ @@ -80,6 +77,5 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' -STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') MEDIA_URL = '/media/' diff --git a/site_musique/settings/dev.py b/site_musique/settings/dev.py index c55155b..a1a3e14 100644 --- a/site_musique/settings/dev.py +++ b/site_musique/settings/dev.py @@ -1,5 +1,7 @@ from .base import * +BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + DEBUG = True ALLOWED_HOSTS = [] @@ -17,3 +19,5 @@ DATABASES = { } MEDIA_ROOT = os.path.join(BASE_DIR, 'media') + +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') diff --git a/site_musique/settings/prod.py b/site_musique/settings/prod.py index 67af6df..15bff47 100644 --- a/site_musique/settings/prod.py +++ b/site_musique/settings/prod.py @@ -34,3 +34,5 @@ DATABASES = { } MEDIA_ROOT = os.path.join(VAR_DIR, 'media') + +STATIC_ROOT = os.path.join(VAR_DIR, 'staticfiles')