nettoyage paramètres dev
This commit is contained in:
parent
fda98879a9
commit
12b66c3b83
@ -12,9 +12,6 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
|
|||||||
|
|
||||||
import os
|
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
|
# Quick-start development settings - unsuitable for production
|
||||||
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
|
# 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/
|
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
|
||||||
|
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
from .base import *
|
from .base import *
|
||||||
|
|
||||||
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = []
|
||||||
@ -17,3 +19,5 @@ DATABASES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||||
|
|
||||||
|
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||||
|
@ -34,3 +34,5 @@ DATABASES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')
|
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')
|
||||||
|
|
||||||
|
STATIC_ROOT = os.path.join(VAR_DIR, 'staticfiles')
|
||||||
|
Loading…
Reference in New Issue
Block a user