aboutsummaryrefslogtreecommitdiffstats
path: root/examples/objectstore/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/objectstore/urls.py')
-rw-r--r--examples/objectstore/urls.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/objectstore/urls.py b/examples/objectstore/urls.py
index c04e731e..2c685f59 100644
--- a/examples/objectstore/urls.py
+++ b/examples/objectstore/urls.py
@@ -1,6 +1,7 @@
-from django.conf.urls.defaults import patterns
-
+from django.conf.urls.defaults import patterns, url
+from objectstore.views import ObjectStoreRoot, StoredObject
+
urlpatterns = patterns('objectstore.views',
- (r'^$', 'ObjectStoreRoot'),
- (r'^(?P<key>[A-Za-z0-9_-]{1,64})/$', 'StoredObject'),
+ url(r'^$', ObjectStoreRoot.as_view(), name='object-store-root'),
+ url(r'^(?P<key>[A-Za-z0-9_-]{1,64})/$', StoredObject.as_view(), name='stored-object'),
)