Hi Chris, Unfortunately, that doesn't work either. I guess I can just pass in a dictionary of my local_variables and do them that way. A little kludgy, but I guess it's not that bad, if that's what I have to do.
On Nov 13, 3:04 am, Chris Emerson <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 02:56:26PM +1100, Malcolm Tredinnick wrote: > > On Wed, 2008-11-12 at 22:39 -0500, Karen Tracey wrote: > > > On Wed, Nov 12, 2008 at 10:27 PM, 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'), > > [...] > > > > The \w in your specifier for conversion_template matches [a-zA-Z0-9_] > > > but you are trying to match something with dashes in it. > > > That isn't the issue. The pattern is [-\w], which will also match > > dashes. I'm not sure what is going wrong yet, though, since it looks > > like it should be working. > > Shouldn't it be {% url conversions conversion_template="..." %}, ie > using a keyword argument rather than positional? > > Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---