diff options
| author | tom christie tom@tomchristie.com | 2011-01-30 11:00:20 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-01-30 11:00:20 +0000 |
| commit | 250ab0f609f32cd3e004e1f2711f9c2e4fd9b57c (patch) | |
| tree | 915eeda0528dab3159958500c117e9285bc56ef3 /examples/blogpost/urls.py | |
| parent | 40f47a9fb31aebd965dce03ae57c036d5360d124 (diff) | |
| download | django-rest-framework-250ab0f609f32cd3e004e1f2711f9c2e4fd9b57c.tar.bz2 | |
Lots of docs, trying to tidy up examples...
Diffstat (limited to 'examples/blogpost/urls.py')
| -rw-r--r-- | examples/blogpost/urls.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/blogpost/urls.py b/examples/blogpost/urls.py index eccbae15..ee209b3e 100644 --- a/examples/blogpost/urls.py +++ b/examples/blogpost/urls.py @@ -1,11 +1,8 @@ from django.conf.urls.defaults import patterns urlpatterns = patterns('blogpost.views', - (r'^$', 'RootResource'), - (r'^blog-posts/$', 'BlogPostList'), - (r'^blog-post/$', 'BlogPostCreator'), - (r'^blog-post/(?P<key>[^/]+)/$', 'BlogPostInstance'), - (r'^blog-post/(?P<blogpost_id>[^/]+)/comments/$', 'CommentList'), - (r'^blog-post/(?P<blogpost_id>[^/]+)/comment/$', 'CommentCreator'), - (r'^blog-post/(?P<blogpost>[^/]+)/comments/(?P<id>[^/]+)/$', 'CommentInstance'), + (r'^$', 'BlogPostRoot'), + (r'^(?P<key>[^/]+)/$', 'BlogPostInstance'), + (r'^(?P<blogpost_id>[^/]+)/comments/$', 'CommentRoot'), + (r'^(?P<blogpost>[^/]+)/comments/(?P<id>[^/]+)/$', 'CommentInstance'), ) |
