mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
8 lines
314 B
Python
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'),
|
|
)
|