blob: 6e141f3c1aacb78dd64926c6407f0c948ce6e7ca (
plain)
1
2
3
4
5
6
7
|
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'),
)
|