mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 19:44:00 +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):
|
||||
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