django-rest-framework/examples/resourceexample/urls.py
2011-06-07 14:07:49 +01:00

8 lines
314 B
Python

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