Update {{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}
