ff0000/django-start — Issue #12: Don't pass all the settings in the RequestContext
Author: claudiobi
Created: 2011-10-13 16:26:59+00:00
State: open

Right now, every template can access every Django setting through {{ settings }}.

Some of these settings should not be accessible in templates.

The solution is to define a new setting in settings/__init__.py called… SETTINGS which would only include the settings to export to templates.

For instance:

SETTINGS = {
'ENVIRONMENT': ENVIRONMENT,
'DEBUG': DEBUG,
}