Got it. I am now regex semi-literate... this helped:
http://www.roblocher.com/technotes/regexp.aspx
For those interested, I changed the broken line to
(r'^chef/home/(?P[a-z]+)/(?P[a-z]+)/
$','mysite.chef.views.sort_recipes')
Thanks Ned
~John
On Jan 23, 2:59 pm, Ned Batchelder <[EMAIL PROTECTE
I don't know if the URL you show is literally what you hit or not. If it
is, then it doesn't match because "param1" doesn't match "\d+" which
means one or more digits. Same for param2.
--Ned.
almostvindiesel wrote:
> Hi all,
>
> I'm new to regex/django/python, and I'm having trouble getting
Hi all,
I'm new to regex/django/python, and I'm having trouble getting urls.py
to pass a request to a view. Specifically, when I hit:
http://django.mysite.com/chef/home/param1/param2/
I'd expect the 3rd from the last pattern to match:
## my urls.py file
3 matches
Mail list logo