mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-10 16:12:29 +03:00
Update {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
parent
689e22f5b0
commit
c57b8976b0
|
@ -2,5 +2,7 @@ from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
def settings_context(_request):
|
def settings_context(_request):
|
||||||
# Be explicit
|
"""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}
|
return {"DEBUG": settings.DEBUG}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user