Hmm... Why in template tag you wrote `conversions` as view name but in error
traceback there is `my_site.conversions`?


On Thu, Nov 13, 2008 at 06:27, Brandon Taylor <[EMAIL PROTECTED]>wrote:

>
> 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 django-users@googlegroups.com
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