>
> (r'^%s(?P<path>[^?#]*)' % (root_url), 'apps.cms.views.render'),
>
Note that '?' is a special character, but more importantly your
expression probably matches both the initial request and the
redirected one. Check it out:
>>> r = re.compile('/about/(?P<path>[^?#]*)')
>>> r.match('/about/?user1')
<_sre.SRE_Match object at 0x4d420>
>>> r.match('/about/mydir/user1/')
<_sre.SRE_Match object at 0x4d3a0>
You should escape the ? and perhaps sure up the expression by
eliminating slashes. e.g. the following *might* be okay, something
similar almost certainly will be.
>>> r = re.compile(r'/about/\?(?P<path>[^\?#/]*)')
>>> r.match('/about/mydir/user1/')
>>> r.match('/about/?user1')
<_sre.SRE_Match object at 0x4d420>
-rob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---