mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-11 16:42:26 +03:00
Merge pull request #2694 from Andrew-Chen-Wang/patch-7
This commit is contained in:
commit
e2910a3222
|
@ -2,4 +2,7 @@ from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
def settings_context(_request):
|
def settings_context(_request):
|
||||||
return {"settings": settings}
|
"""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