diff options
| author | tom christie tom@tomchristie.com | 2011-01-23 23:08:16 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-01-23 23:08:16 +0000 |
| commit | 4100242fa2395bef8db0c5ffbab6f5d0cf95301d (patch) | |
| tree | 0c8efd4dfdbdc6af7dca234291f8f8c7e3b035ff /examples/blogpost/urls.py | |
| parent | 99799032721a32220c32d4a74a950bdd07b13cb3 (diff) | |
| download | django-rest-framework-4100242fa2395bef8db0c5ffbab6f5d0cf95301d.tar.bz2 | |
Sphinx docs, examples, lots of refactoring
Diffstat (limited to 'examples/blogpost/urls.py')
| -rw-r--r-- | examples/blogpost/urls.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/blogpost/urls.py b/examples/blogpost/urls.py new file mode 100644 index 00000000..eccbae15 --- /dev/null +++ b/examples/blogpost/urls.py @@ -0,0 +1,11 @@ +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'), +) |
