On 10-08-11 16:17, Kayode Odeyemi wrote:
I need some help on how to pass url parameters to template url tag.
Something like this:
<a href="{% url reverse-url-fn request.GET.get('page', '')%}">my page</a>
page is the url parameter I want to get
Best solution: calculate that url in your python view code and just pass
it along in the context.
The generic rule is that most processing should happen in python code,
not in your template.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.