Assuming I have a generic view. Can I used the "extra_context"
parameter to pass a request object to a function elsewhere or resolve
request.path directly?
Example of what I am trying to do is below:-
from django.http import HttpResponse, HttpRequest
from jmyapp.blog.views import test
info_dict = {
'queryset': Entry.objects.all(),
'paginate_by': 10,
'extra_context':{'test_response': test(request), 'path': request.path, }
Mermer
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---