mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 11:34:00 +03:00
Removed unnecessary custom context processor exposing the DEBUG Template Context Variable (#3042)
This commit is contained in:
parent
efdda66d2f
commit
0fc1f6804f
|
@ -199,7 +199,6 @@ TEMPLATES = [
|
||||||
"django.template.context_processors.static",
|
"django.template.context_processors.static",
|
||||||
"django.template.context_processors.tz",
|
"django.template.context_processors.tz",
|
||||||
"django.contrib.messages.context_processors.messages",
|
"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