[Django] #35797: Remove `context_processors.debug` from startproject settings template

10 views
Skip to first unread message

Django

unread,
Sep 27, 2024, 10:35:14 AM9/27/24
to django-...@googlegroups.com
#35797: Remove `context_processors.debug` from startproject settings template
-------------------------------------+-------------------------------------
Reporter: Marc Gibbons | Type:
| Cleanup/optimization
Status: new | Component: Template
| system
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
The debug context processor is old. The `{{ debug }}` variable it exposes
behaves differently than every other usage of the concept `debug` in
Django. Rather than changing its behaviour as originally proposed in
#35370, it was suggested that the `context_processors.debug` be removed
from the default list (see https://forum.djangoproject.com/t/revisiting-
django-template-context-processors-debug/30122)
--
Ticket URL: <https://code.djangoproject.com/ticket/35797>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 27, 2024, 10:43:45 AM9/27/24
to django-...@googlegroups.com
#35797: Remove `context_processors.debug` from startproject settings template
-------------------------------------+-------------------------------------
Reporter: Marc Gibbons | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marc Gibbons):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35797#comment:1>
Reply all
Reply to author
Forward
0 new messages