diff options
author | bnewbold <bnewbold@eta.mit.edu> | 2009-01-25 13:05:25 -0500 |
---|---|---|
committer | bnewbold <bnewbold@eta.mit.edu> | 2009-01-25 13:05:25 -0500 |
commit | 75bc6a976f98e36a9426e6115d3f628a8fa73762 (patch) | |
tree | abf42e0d4b94146506e0208a08afe8758eb11a93 /bn_django/journal/urls.py | |
parent | 296dc07f010d8692028db682d02ef3e88e525f01 (diff) | |
download | bnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.tar.gz bnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.zip |
whew artifact stuff, all basic style
Diffstat (limited to 'bn_django/journal/urls.py')
-rw-r--r-- | bn_django/journal/urls.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bn_django/journal/urls.py b/bn_django/journal/urls.py index 1730ac7..4267e17 100644 --- a/bn_django/journal/urls.py +++ b/bn_django/journal/urls.py @@ -1,12 +1,20 @@ from django.conf.urls.defaults import * from django.conf import settings -from models import Entry, MicroEntry, Artifact +from models import Entry, MicroEntry urlpatterns = patterns('django.views.generic.list_detail', (r'^$', 'object_list', dict(queryset=Entry.objects.order_by('-date'), paginate_by=35, allow_empty=False)), - (r'^(?P<slug>[\d\w-]+)/$', 'object_detail', + (r'^entries/$', 'object_list', + dict(queryset=Entry.objects.order_by('-date'), + paginate_by=35, allow_empty=False)), + (r'^entries/(?P<slug>[\d\w-]+)/$', 'object_detail', dict(queryset=Entry.objects.all(), slug_field='slug')), + (r'^microentries/$', 'object_list', + dict(queryset=MicroEntry.objects.order_by('-date'), + paginate_by=35, allow_empty=False)), + (r'^microentries/(?P<object_id>\d+)/$', 'object_detail', + dict(queryset=MicroEntry.objects.all())), ) |