My noob error: I had extra "portal/" on my regex.
Sorry and thanks for your attention.
--~--~-~--~~~---~--~~
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@googlegro
On Sep 6, 3:52 pm, Karen Tracey wrote:
> On Sun, Sep 6, 2009 at 1:36 AM, Jim Myers wrote:
>
> > Thanks, but that doesn't do it either.
> > I changed the regex to:
>
> > ^portal/student/(?P\S+)/profile_edit/$
>
> > and it still doesn't match :(
>
> It should:
>
> >>> import re
> >>> re.match(r'
On Sun, Sep 6, 2009 at 1:36 AM, Jim Myers wrote:
>
> Thanks, but that doesn't do it either.
> I changed the regex to:
>
> ^portal/student/(?P\S+)/profile_edit/$
>
> and it still doesn't match :(
>
>
It should:
>>> import re
>>> re.match(r'^portal/student/(?P\S+)/profile_edit/$',
'portal/student/
Thanks, but that doesn't do it either.
I changed the regex to:
^portal/student/(?P\S+)/profile_edit/$
and it still doesn't match :(
On Sep 5, 9:44 pm, Karen Tracey wrote:
> On Sat, Sep 5, 2009 at 11:32 PM, Jim Myers wrote:
>
> > Hi, I'm using this regex in urls.py:
>
> > r'^portal/student/(?P
On Sat, Sep 5, 2009 at 11:32 PM, Jim Myers wrote:
>
> Hi, I'm using this regex in urls.py:
>
> r'^portal/student/(?P\S+)/profile_edit$'
>
> There's no trailing slash on this regex, but there is an end of string
marker ($). So a match will have to end with 'profile_edit', no trailing
slash.
> to
5 matches
Mail list logo