You can try this:

context['request'].GET

It will work only if you are using RequestContext[1] or add the request to
the template manually. It can be achieved either using generic views [2] or
passing the context_instance parameter to the render_to_response [3]. I
usually prefer to use direct_to_template [4] instead of render_to_response
when I will need to use the Template Context Processors.

[1] http://docs.djangoproject.com/en/dev/ref/templates/api/#id1
[2] http://docs.djangoproject.com/en/dev/ref/generic-views/
[3]
http://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render-to-response
[4]
http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-simple-direct-to-template

______________________
Vinícius Mendes
Solucione Sistemas
http://solucione.info/


On Mon, Apr 5, 2010 at 8:07 AM, Anders Eide <[email protected]> wrote:

> Hello!
>
> How can i get information from request.GET in a inclusion tag?
>
> http://docs.djangoproject.com/en/1.1/howto/custom-template-tags/#inclusion-tags
>
> - Anders
>
> --
> 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]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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?hl=en.

Reply via email to