mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-16 01:44:51 +03:00
Removed unnecessary custom context processor exposing a variable that another context processor,django.template.context_processors.debug , already exposes.
This commit is contained in:
parent
fc01e870bd
commit
861dadc81f
|
@ -198,7 +198,6 @@ TEMPLATES = [
|
|||
"django.template.context_processors.static",
|
||||
"django.template.context_processors.tz",
|
||||
"django.contrib.messages.context_processors.messages",
|
||||
"{{ cookiecutter.project_slug }}.utils.context_processors.settings_context",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
from django.conf import settings
|
||||
|
||||
|
||||
def settings_context(_request):
|
||||
"""Settings available by default to the templates context."""
|
||||
# Note: we intentionally do NOT expose the entire settings
|
||||
# to prevent accidental leaking of sensitive information
|
||||
return {"DEBUG": settings.DEBUG}
|
Loading…
Reference in New Issue
Block a user