From c57b8976b09fcd6ec7f3ef095b4b967f3d68e8d3 Mon Sep 17 00:00:00 2001 From: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> Date: Fri, 24 Jul 2020 11:29:11 -0400 Subject: [PATCH] Update {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py Co-authored-by: Bruno Alla --- .../{{cookiecutter.project_slug}}/utils/context_processors.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py index def96787..3c535141 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py @@ -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}