django-rest-framework/examples/resourceexample/urls.py
2011-02-01 23:07:55 +00:00

7 lines
212 B
Python

from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('resourceexample.views',
url(r'^$', 'ExampleResource'),
url(r'^(?P<num>[0-9]+)/$', 'AnotherExampleResource'),
)