Re: Need some slightly advanced routing help

2008-05-04 Thread Chris Hartjes
On Sun, May 4, 2008 at 9:21 PM, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > Hi Chris > > or, if you want it more specific: > > (r'^(?P\w+)/(?P\d{4}-\d{2}-\d{2})/$', 'myview'), > > > Personally I'd go with the last example in this case. > That one worked perfectly. I had a brain cramp about t

Re: Need some slightly advanced routing help

2008-05-04 Thread @@
\w don't match '-', so use [\w-]+ instead. but this regx is not accurate. have a look at this http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/blog/urls.py On 5/5/08, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > I've been trying to do something that I *think* should b

Re: Need some slightly advanced routing help

2008-05-04 Thread Steven Armstrong
Chris Hartjes wrote on 05/05/08 02:53: > I've been trying to do something that I *think* should be simple, > but apparently is not. Or, the more likely answer is that I am missing > something pretty obvious. I spent some time googling around for the answer > but didn't find what I was looking fo

Need some slightly advanced routing help

2008-05-04 Thread Chris Hartjes
I've been trying to do something that I *think* should be simple, but apparently is not. Or, the more likely answer is that I am missing something pretty obvious. I spent some time googling around for the answer but didn't find what I was looking for. So here goes. I'm building a web service to