#15645: HTTP methods in urls.py
---------------------------+---------------------------
Reporter: haras | Owner: nobody
Status: new | Milestone:
Component: HTTP handling | Version:
Keywords: http urls | Triage Stage: Unreviewed
Has patch: 0 |
---------------------------+---------------------------
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:
{{{
urlpatterns = patterns('',
url ('POST', r'/user/(?P<username>\d+)$', 'myapp.views.user.view1'),
url ('GET', r'/user/(?P<username>\d+)$', 'myapp.views.user.view2'),
url ('DELETE', r'/user/(?P<username>\d+)$', 'myapp.views.user.delete'),
)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/15645>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.