Hi everyone,

So I have a question/problem with a named URL pattern...

#urls.py
url(r'^resources/conversions/(?P<conversion_template>[-\w]+)/$',
'my_site.views.conversions', name='conversions'),

This is a mostly static site, but I would like to be able to pass the
"conversion_template" parameter to do a dynamic include. However, when
I try to provide the parameter in my template:

<a href="{% url conversions "steel-plate-weight" %}">Some text</a>

I receive an error:
Reverse for 'my_site.conversions' with arguments '(u'steel-plate-
weight',)' and keyword arguments '{}' not found.

What am I doing wrong?

Kind regards,
Brandon
--~--~---------~--~----~------------~-------~--~----~
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