mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +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):
|
||||
# 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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user