From 75bc6a976f98e36a9426e6115d3f628a8fa73762 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 25 Jan 2009 13:05:25 -0500 Subject: whew artifact stuff, all basic style --- bn_django/journal/urls.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bn_django/journal/urls.py') 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[\d\w-]+)/$', 'object_detail', + (r'^entries/$', 'object_list', + dict(queryset=Entry.objects.order_by('-date'), + paginate_by=35, allow_empty=False)), + (r'^entries/(?P[\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\d+)/$', 'object_detail', + dict(queryset=MicroEntry.objects.all())), ) -- cgit v1.2.3