Is there anyway to access the request object from a generic view? Specifically, I'd like to access the request.user object. I tried doing it as follows: (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html', 'extra_context' : {'request' : request}} hoping that the dictionary element would be evaluated within the context of the view where request would be valid. Alas I was mistaken.
Any help would be much appreciated! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.