Then forget about ajax.*
What I am thinking is to change url dispatcher
to create three as many lists as the http methods is
GET = ()
POST = ()
DELETE = ()
...
ALL = ()
And then while parsing an urls.py it appends fitting matches to those
lists.
When goes request, for example GET, than dispatch
On Mon, Mar 21, 2011 at 9:09 AM, haras.pl wrote:
> It would be nice to have possibility to distinguish a HTTP method in
> urls.py. IMHO it would be clearer and more extensible in future for
> example:
> ajax ('POST', r'/user/(?P\d+)$', 'views.view2'),
> ajax ('GET', r'/user/(?P\d+)$', 'views.vi
It would be nice to have possibility to distinguish a HTTP method in
urls.py. IMHO it would be clearer and more extensible in future for
example:
from django.conf.urls.defaults import ajax
from django.conf.urls.defaults import http
from django.conf.urls.defaults import url
from django.conf.urls.de