mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
7 lines
200 B
Python
7 lines
200 B
Python
from django.conf.urls.defaults import patterns, url
|
|
|
|
urlpatterns = patterns('modelresourceexample.views',
|
|
url(r'^$', 'MyModelRootResource'),
|
|
url(r'^([0-9]+)/$', 'MyModelResource'),
|
|
)
|