Commit ecaccbdc by benjaoming

add request context processor and check that config is OK

parent 6a3c7775
...@@ -85,6 +85,7 @@ TEMPLATE_CONTEXT_PROCESSORS =( ...@@ -85,6 +85,7 @@ TEMPLATE_CONTEXT_PROCESSORS =(
'django.core.context_processors.static', 'django.core.context_processors.static',
'django.core.context_processors.tz', 'django.core.context_processors.tz',
'django.core.context_processors.debug', 'django.core.context_processors.debug',
'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'sekizai.context_processors.sekizai', 'sekizai.context_processors.sekizai',
) )
......
...@@ -32,6 +32,9 @@ if not 'django.contrib.contenttypes' in django_settings.INSTALLED_APPS: ...@@ -32,6 +32,9 @@ if not 'django.contrib.contenttypes' in django_settings.INSTALLED_APPS:
if not 'django.contrib.auth.context_processors.auth' in django_settings.TEMPLATE_CONTEXT_PROCESSORS: if not 'django.contrib.auth.context_processors.auth' in django_settings.TEMPLATE_CONTEXT_PROCESSORS:
raise ImproperlyConfigured('django-wiki: needs django.contrib.auth.context_processors.auth in TEMPLATE_CONTEXT_PROCESSORS') raise ImproperlyConfigured('django-wiki: needs django.contrib.auth.context_processors.auth in TEMPLATE_CONTEXT_PROCESSORS')
if not 'django.core.context_processors.request' in django_settings.TEMPLATE_CONTEXT_PROCESSORS:
raise ImproperlyConfigured('django-wiki: needs django.core.context_processors.request in TEMPLATE_CONTEXT_PROCESSORS')
###################### ######################
# Warnings # Warnings
###################### ######################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment