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
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
2 matches
Mail list logo