Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.322 kb
from django.conf import settings
def context_settings(request):
"""Add whatever settings to the context"""
cxt = {}
for setting in getattr(settings, 'CONTEXT_SETTINGS', []):
try:
cxt[setting] = getattr(settings, setting)
except AttributeError:
continue
return cxt
Jump to Line
Something went wrong with that request. Please try again.