Projet

Général

Profil

0003-misc-update-settings-for-django-1.11-20909.patch

Frédéric Péters, 28 décembre 2017 09:56

Télécharger (2,02 ko)

Voir les différences:

Subject: [PATCH 3/3] misc: update settings for django 1.11 (#20909)

 welco/settings.py | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
welco/settings.py
27 27
# SECURITY WARNING: don't run with debug turned on in production!
28 28
DEBUG = True
29 29

  
30
TEMPLATE_DEBUG = True
31

  
32 30
ALLOWED_HOSTS = []
33 31

  
34 32

  
......
101 99

  
102 100
STATIC_URL = '/static/'
103 101

  
104
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',)
102
STATICFILES_FINDERS = tuple(global_settings.STATICFILES_FINDERS) + ('gadjo.finders.XStaticFinder',)
105 103

  
106 104
STATICFILES_DIRS = (
107 105
    os.path.join(BASE_DIR, 'welco', 'static'),
......
110 108
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
111 109
MEDIA_URL = '/media/'
112 110

  
113
TEMPLATE_DIRS = (
114
    os.path.join(BASE_DIR, 'welco', 'templates'),
115
)
111
TEMPLATES = [
112
    {
113
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
114
        'DIRS': [
115
            os.path.join(BASE_DIR, 'welco', 'templates'),
116
        ],
117
        'APP_DIRS': True,
118
        'OPTIONS': {
119
            'context_processors': [
120
                'django.contrib.auth.context_processors.auth',
121
                'django.template.context_processors.debug',
122
                'django.template.context_processors.i18n',
123
                'django.template.context_processors.media',
124
                'django.template.context_processors.static',
125
                'django.template.context_processors.tz',
126
                'django.contrib.messages.context_processors.messages',
127
            ],
128
        },
129
    },
130
]
116 131

  
117 132
CKEDITOR_UPLOAD_PATH = 'uploads/'
118 133

  
119
-