Re: url pattern needed

2010-04-08 Thread Daniel Roseman
On Apr 8, 5:40 am, ydjango wrote: > I have an ajax request coming in like > thishttp://localhost:8000/board/getnames?age=31&sex=1 > > I cannot change it tohttp://localhost:8000/board/getnames/31/1 > > 1) what would be the url pattern to use in urls.py? > > 2) what would be view method - def getna

url pattern needed

2010-04-07 Thread ydjango
I have an ajax request coming in like this http://localhost:8000/board/getnames?age=31&sex=1 I cannot change it to http://localhost:8000/board/getnames/31/1 1) what would be the url pattern to use in urls.py? 2) what would be view method - def getname(request, age = None, sex = None): -- You