django-rest-framework/examples/simpleexample/urls.py

7 lines
193 B
Python
Raw Normal View History

from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('simpleexample.views',
2011-01-31 11:41:21 +03:00
url(r'^$', 'MyModelRootResource'),
url(r'^([0-9]+)/$', 'MyModelResource'),
)