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