Fix broken url naming in examples

This commit is contained in:
Tom Christie 2011-06-07 14:07:49 +01:00
parent 3531b0b355
commit a8980892c4

View File

@ -2,6 +2,6 @@ from django.conf.urls.defaults import patterns, url
from resourceexample.views import ExampleView, AnotherExampleView from resourceexample.views import ExampleView, AnotherExampleView
urlpatterns = patterns('', 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'), url(r'^(?P<num>[0-9]+)/$', AnotherExampleView.as_view(), name='another-example'),
) )