On 26 août, 18:55, Aspontus <aspon...@gmail.com> wrote: > Hi. > If I understand your problem correctly, you are looking for a way to > capture different optional parameters from the url, to use them in > further url construction.
> Why not use /country/de/district/hf/observation/add/ with entries Why add unneeded parts to the url ? > Then in your view just check which parameters were assigned via > urlconf and pass them to the template to use in url construction. > > /{% if country %}country/{{ country }}/{% if district %}district/ > {{ district }}/{% endif %}{% endif %}observers/ranking And why not just use the urlresolver's ability to build the correct url based on the url's name and arguments ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.