Ok Thank you very much both of you, and sorry about missunderstanding what
James said.
I understand it now.
I'll try it as soon as I arrive home.
Thank you.
2007/4/3, Karen Tracey <[EMAIL PROTECTED]>:
>
> I'll try to elaborate what James said. (Did you consult the documentation
> links he pointed
I'll try to elaborate what James said. (Did you consult the documentation
links he pointed to? They detail how you get the request object accessible
in your templates, and thus your custom template tag.)
In order to get access to the request object in your custom template tag,
you must make some
I don't know if I didn't understand you or if I you didn't don't
understand me :-)
Not sure abou what you are saying, I think I can't use it to make the
template tag work.
The template tag doesn't use a view to render the content, so it
doesn't get the request object as a parameter.
This is the co
On 4/3/07, Grupo Django <[EMAIL PROTECTED]> wrote:
> Inside the custom template tag, I don't get the request object since
> it's not a view.
Look into using RequestContext[1] in your views (generic views all use
it automatically), and enabling the "request" context processor[2].
This will make th
Hi, I need to know how can I access data stored in the session out of
a view.
I have created a custom template tag which has to check a variable
stored in the request.session. It's strictly necessary to store the
data in a session variable at this moment.
Inside the custom template tag, I don't ge
5 matches
Mail list logo