Assuming I have a context processor:
def title(request):
return {\'titles\': \'mytitle\'}
I can access this variable in template as
If you need the data in your views, it's cleaner to use Middleware in conjunction with a Context Processor:
request.x
(example). Now you can access this in your views directly.django.core.context_processors.request
in your TEMPLATE_CONTEXT_PROCESSORS
to have request.x accessible from your templates.See my related question: Django: How to provide context to all views (not templates)?