Re: regex problem in urls.py in Django 1.1/mod_wsgi

2009-09-06 Thread Jim Myers
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

Re: regex problem in urls.py in Django 1.1/mod_wsgi

2009-09-05 Thread Graham Dumpleton
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'

Re: regex problem in urls.py in Django 1.1/mod_wsgi

2009-09-05 Thread Karen Tracey
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/

Re: regex problem in urls.py in Django 1.1/mod_wsgi

2009-09-05 Thread Jim Myers
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

Re: regex problem in urls.py in Django 1.1/mod_wsgi

2009-09-05 Thread Karen Tracey
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