refonte django #3
@ -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/'
|
||||
|
@ -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')
|
||||
|
@ -34,3 +34,5 @@ DATABASES = {
|
||||
}
|
||||
|
||||
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')
|
||||
|
||||
STATIC_ROOT = os.path.join(VAR_DIR, 'staticfiles')
|
||||
|
Loading…
Reference in New Issue
Block a user