I turned on the django request processor
TEMPLATE_PROCESSORS = ( "django.core.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", "django.core.context_processors.request", )
However, I do not need to query the variable available in the templates. I have to manually pass this. Using django 1.0.2 Throughout the network, this only looks like a request handler.
I also use RequestContext like:
return render_to_response( 'profile.html', { 'persons':Person.objects.all(), 'person':Person.objects.get(id=id), 'request':request, }, context_instance=RequestContext(request) )
Bad luck
ohh darn new name for this TEMPLATE_CONTEXT_PROCESSORS
django request processor
Attila Mar 31 '09 at 19:09 2009-03-31 19:09
source share