Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread deepak dhananjaya
Thank you guys! I m going thru regexp :) On Jul 23, 8:42 pm, Franklin Einspruch wrote: > Minor correction above: third example should read "one OR MORE digits > stored as a value." But yes, urls.py works on regexes so you do need > the basics. Good luck! > > Franklin > > On Fri, Jul 23, 2010 at 1

Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread Franklin Einspruch
Minor correction above: third example should read "one OR MORE digits stored as a value." But yes, urls.py works on regexes so you do need the basics. Good luck! Franklin On Fri, Jul 23, 2010 at 11:38 AM, deepak dhananjaya wrote: > Thank you! It worked.. I have to get my basics of regular expre

Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread deepak dhananjaya
Thank you! It worked.. I have to get my basics of regular expressions rite!! On Jul 23, 8:33 pm, Shawn Milochik wrote: > You have three regular expressions. Two of them require digits, and > one requires *only* /record/, with no additional arguments. > > So /record/john/ does not match any of tho

Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread Franklin Einspruch
Regexes are tricky if you're new to them. ^record/$ matches 'record/' ^record/(\d{3})/$ matches 'record/, then three digits, then '/' ^record/(?P\d+)/$ matches 'record/', then one digit stored as a value that can be passed to django, then '/' Check this out: http://www.regular-expressions.info

Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread Shawn Milochik
You have three regular expressions. Two of them require digits, and one requires *only* /record/, with no additional arguments. So /record/john/ does not match any of those. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread deepak dhananjaya
My URLS.PY has urlpatterns = patterns('', (r'^record/$', 'phonebook.record.views.showlist'), (r'^record/(\d{3})/$', 'phonebook.record.views.testrecord'), (r'^record/(?P\d+)/$', 'phonebook.record.views.showRecord'), #(r'^record/(?P\d+)/$', 'phonebook.record.views.showlist'), # Ex