mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
9 lines
303 B
Python
9 lines
303 B
Python
from django.conf.urls.defaults import patterns
|
|
|
|
urlpatterns = patterns('blogpost.views',
|
|
(r'^$', 'BlogPostRoot'),
|
|
(r'^(?P<key>[^/]+)/$', 'BlogPostInstance'),
|
|
(r'^(?P<blogpost_id>[^/]+)/comments/$', 'CommentRoot'),
|
|
(r'^(?P<blogpost>[^/]+)/comments/(?P<id>[^/]+)/$', 'CommentInstance'),
|
|
)
|