I have a custom context processor that sets request.myfield, so it can
be used elsewhere such as views, templates, etc. It's a very regularly
accessed piece of information that is required just about everywhere,
so a middleware seemed to be a nifty place to put it.
My TEMPLATE_CONTEXT_PROCESSORS contains
django.core.context_processors.request, and it appears to be working
correctly in most places.
However, the login view (django.contrib.auth.views.login), which calls
RequestContext(request), doesn't appear to have {{ request }}
available in the template - request.path, request.myfield,
request.user are all just non-existant.
It's got to be something simple that I've missed. Does anybody have
any suggestions?
Ross
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---