refonte django #3

Merged
nyanloutre merged 15 commits from refonte_django into master 2022-11-02 18:14:29 +01:00
3 changed files with 6 additions and 4 deletions
Showing only changes of commit 12b66c3b83 - Show all commits

View File

@ -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/'

View File

@ -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')

View File

@ -34,3 +34,5 @@ DATABASES = {
}
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')
STATIC_ROOT = os.path.join(VAR_DIR, 'staticfiles')