I'm not sure if reversing inside the url patterns is possible (but I kinda doubt it), but maybe I can help out with a different, and probably better, solution. It seems you only want to use the URL to your add_item_wizard function inside your message.html template. Then you could use the builtin url template tag to do the same thing.
For example: <a href="{% url add_item_wizard %}">Link</a> Look here for more information on this tag: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url If you need the URL multiple times in your template, you can use this (as mentioned in the docs): {% url add_item_wizard as the_url %} <a href="{{ the_url }}">I'm linking to {{ the_url }}</a> This way you don't need to pass the URL in your extra_context. Regards, Reiner On Apr 3, 10:24 am, robin <robinc...@gmail.com> wrote: > It seems like you cannot use reverse within urls.py > > url(r'^add/$','items.views.add_item_wizard',name='add_item_wizard'), > > url(r'^add/complete/ > $','django.views.generic.simple.direct_to_template',{ > 'template':'message.html', > 'extra_context':{ > 'title': 'Add Item Complete', > 'url': reverse('add_item_wizard'), > } > }, name='add_item_complete'), > > Is there no way? > > Thanks in advance, > Robin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---