module templates et static communs
This commit is contained in:
parent
d03d2f3371
commit
c9e613adda
109 changed files with 221 additions and 225 deletions
0
site_musique/settings/__init__.py
Normal file
0
site_musique/settings/__init__.py
Normal file
|
@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
|
|||
INSTALLED_APPS = [
|
||||
'site_statique.apps.SiteStatiqueConfig',
|
||||
'timeline.apps.TimelineConfig',
|
||||
'common_files.apps.CommonFilesConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
@ -54,7 +55,6 @@ ROOT_URLCONF = 'site_musique.urls'
|
|||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [os.path.join(BASE_DIR, 'templates')],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
@ -87,10 +87,7 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
]
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
MEDIA_URL = '/media/'
|
||||
|
|
|
@ -11,6 +11,6 @@ import os
|
|||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "site_musique.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "site_musique.settings.dev")
|
||||
|
||||
application = get_wsgi_application()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue