0
0
mirror of https://github.com/django/django.git synced 2024-11-24 20:07:01 +01:00

Fixed #35797 -- Removed debug context processor from default project template.

This commit is contained in:
Marc Gibbons 2024-09-30 15:52:28 -04:00 committed by GitHub
parent 73e8e81141
commit 6765b6adf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 3 additions and 6 deletions

View File

@ -58,7 +58,6 @@ TEMPLATES = [
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',

View File

@ -324,7 +324,6 @@ Open your settings file (:file:`mysite/settings.py`, remember) and add a
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",

View File

@ -660,7 +660,6 @@ settings file, the default template engine contains the following context
processors::
[
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",

View File

@ -328,6 +328,9 @@ Miscellaneous
* ``HttpRequest.accepted_types`` is now sorted by the client's preference, based
on the request's ``Accept`` header.
* The :func:`~django.template.context_processors.debug` context processor is no
longer included in the default project template.
.. _deprecated-features-5.2:
Features deprecated in 5.2

View File

@ -1686,7 +1686,6 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
@ -7695,7 +7694,6 @@ class AdminDocsTest(TestCase):
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",

View File

@ -221,7 +221,6 @@ def setup_collect_tests(start_at, start_after, test_labels=None):
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",