mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
parent
a2dafd9643
commit
27aa2d6aad
|
@ -29,8 +29,8 @@ Example:
|
|||
|
||||
urlpatterns = patterns('blog.views',
|
||||
url(r'^/$', 'api_root'),
|
||||
url(r'^comment/$', 'comment_list'),
|
||||
url(r'^comment/(?P<pk>[0-9]+)/$', 'comment_detail')
|
||||
url(r'^comments/$', 'comment_list'),
|
||||
url(r'^comments/(?P<pk>[0-9]+)/$', 'comment_detail')
|
||||
)
|
||||
|
||||
urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'html'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user