Projet

Général

Profil

« Précédent | Suivant » 

Révision 9968c3c8

Ajouté par Frédéric Péters il y a presque 6 ans

settings: add requests context processor (#21007)

Voir les différences:

corbo/settings.py
24 24
# SECURITY WARNING: don't run with debug turned on in production!
25 25
DEBUG = True
26 26

  
27
TEMPLATE_DEBUG = True
28

  
29 27
ALLOWED_HOSTS = []
30 28

  
31 29

  
......
84 82

  
85 83
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',)
86 84

  
85
# Templates
86
TEMPLATES = [
87
    {
88
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
89
        'DIRS': [
90
        ],
91
        'APP_DIRS': True,
92
        'OPTIONS': {
93
            'context_processors': [
94
                'django.contrib.auth.context_processors.auth',
95
                'django.template.context_processors.debug',
96
                'django.template.context_processors.i18n',
97
                'django.template.context_processors.media',
98
                'django.template.context_processors.request',
99
                'django.template.context_processors.static',
100
                'django.template.context_processors.tz',
101
                'django.contrib.messages.context_processors.messages',
102
            ],
103
        },
104
    },
105
]
87 106

  
88 107
# Static files (CSS, JavaScript, Images)
89 108
# https://docs.djangoproject.com/en/1.7/howto/static-files/
debian/settings.py
13 13

  
14 14
# SECURITY WARNING: don't run with debug turned on in production!
15 15
DEBUG = False
16
TEMPLATE_DEBUG = False
17 16

  
18 17
#ADMINS = (
19 18
#        # ('User 1', 'watchdog@example.net'),

Formats disponibles : Unified diff