id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 2837 missing context_instance explanation in the template documentation thomas.rabaix@… Jacob "The documentation about the template engine does not explain how to use custom context processor in a custom view {{{ @@ -301,6 +301,15 @@ .. _HttpRequest object: http://www.djangoproject.com/documentation/request_response/#httprequest-objects .. _TEMPLATE_CONTEXT_PROCESSORS setting: http://www.djangoproject.com/documentation/settings/#template-context-processors +Note : in your custom views, you need to specify the correct context instance in order to access to the variable set +in your processor. + + from django import template + + def demo(request): + values = {'Invoice': '20061254'} + return render_to_response('demo/demo.html', values, context_instance=template.RequestContext(request)) + django.core.context_processors.auth ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ }}} " enhancement closed Documentation 0.95 normal worksforme Unreviewed 0 0 0 0 0 0