mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Deprecated TEMPLATE_CONTEXT_PROCESSORS.
This commit is contained in:
parent
d3205e3e2e
commit
9eb4f28e89
19 changed files with 142 additions and 88 deletions
|
@ -6,7 +6,15 @@ from django.test import TestCase, override_settings
|
|||
|
||||
@override_settings(
|
||||
ROOT_URLCONF='context_processors.urls',
|
||||
TEMPLATE_CONTEXT_PROCESSORS=('django.template.context_processors.request',),
|
||||
TEMPLATES=[{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.template.context_processors.request',
|
||||
],
|
||||
},
|
||||
}],
|
||||
)
|
||||
class RequestContextProcessorTests(TestCase):
|
||||
"""
|
||||
|
@ -42,7 +50,15 @@ class RequestContextProcessorTests(TestCase):
|
|||
DEBUG=True,
|
||||
INTERNAL_IPS=('127.0.0.1',),
|
||||
ROOT_URLCONF='context_processors.urls',
|
||||
TEMPLATE_CONTEXT_PROCESSORS=('django.template.context_processors.debug',),
|
||||
TEMPLATES=[{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.template.context_processors.debug',
|
||||
],
|
||||
},
|
||||
}],
|
||||
)
|
||||
class DebugContextProcessorTests(TestCase):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue