mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Fix broken url naming in examples
This commit is contained in:
parent
3531b0b355
commit
a8980892c4
|
@ -2,6 +2,6 @@ from django.conf.urls.defaults import patterns, url
|
|||
from resourceexample.views import ExampleView, AnotherExampleView
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^$', ExampleView.as_view(), name='example'),
|
||||
url(r'^$', ExampleView.as_view(), name='example-resource'),
|
||||
url(r'^(?P<num>[0-9]+)/$', AnotherExampleView.as_view(), name='another-example'),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user