Ah. I see now. It's matching the first part of the URL, but it doesn't
seem to want to substitute the named parameter <template> as
(template) as such:

(r'(?P<template>[-\w]+)/$', direct_to_template, {'template' : '%
(template)s.html'}),

Thanks,
Brandon

On Apr 18, 11:25 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 18, 2008 at 12:17 PM, Brandon Taylor
>
> <[EMAIL PROTECTED]> wrote:
> >  (r'?P<template>[-\w]+/$', direct_to_template, {'template' : '%
> >  (template)s.html'}),
>
> >  ...and received an error saying:
> >  Error while importing URLconf 'rdk.pages.urls': nothing to repeat
>
> You're missing parentheses around the group you're trying to capture.
> Without them, Python thinks the first question mark is a "zero or one
> instances" instruction, but there's nothing befor it to match against.
> Try this:
>
> r'(?P<template>[-\w]+)/$'
>
> -Gul
--~--~---------~--~----~------------~-------~--~----~
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