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:
Andrew Chen Wang 2020-07-24 11:29:11 -04:00 committed by GitHub
parent 689e22f5b0
commit c57b8976b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}