That looks like a very good way.  Many thanks.  For the sake of 
completeness - does that mean my earlier example wouldn't work? Or is 
just not preferred?

As a newbie to Django and Python I'm sort of testing out stuff  and its 
nice to know for sure what works and what doesn't, particularly as 
Django seems to have many different ways to achieve a particular task.

Cheers

MerMer

James Bennett wrote:
> On 11/2/06, Merric Mercer <[EMAIL PROTECTED]> wrote:
>   
>> 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?
>>     
>
> Why not use RequestContext instead of Context, and enable the
> 'request' context processor?
>
> http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to