Re: Re: Can I pass a Request object within "extra_context" of a Generic View.

2006-11-02 Thread James Bennett
On 11/2/06, Merric Mercer <[EMAIL PROTECTED]> wrote: > 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? It could work provided the code in the 'test' view returns the appropriate value, bu

Re: Can I pass a Request object within "extra_context" of a Generic View.

2006-11-02 Thread Merric Mercer
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

Re: Can I pass a Request object within "extra_context" of a Generic View.

2006-11-02 Thread James Bennett
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