You can pass the settings to the template as follows:
from django.conf import settings from django.template import RequestContext def index(request): return render_to_response('index.html', {'settings': settings}, context_instance=RequestContext(request))
In the template:
{{ settings.MY_SETTING_NAME }}
If you need to access your settings in many templates (many views), consider creating an appropriate context processor template .
source share