aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/urls.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@eta.mit.edu>2009-01-23 02:24:14 -0500
committerbnewbold <bnewbold@eta.mit.edu>2009-01-23 02:24:14 -0500
commitf9305457e75542195cd8a162be2b9ef0e1d92f63 (patch)
tree0086c74ee980d4b545a50a95d7183305ccd57d22 /bn_django/journal/urls.py
parent396ece4ee47af923c619dbf21b041dc6132c0139 (diff)
downloadbnewnet-f9305457e75542195cd8a162be2b9ef0e1d92f63.tar.gz
bnewnet-f9305457e75542195cd8a162be2b9ef0e1d92f63.zip
journal prog prog
Diffstat (limited to 'bn_django/journal/urls.py')
-rw-r--r--bn_django/journal/urls.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bn_django/journal/urls.py b/bn_django/journal/urls.py
new file mode 100644
index 0000000..d65d52a
--- /dev/null
+++ b/bn_django/journal/urls.py
@@ -0,0 +1,12 @@
+from django.conf.urls.defaults import *
+from django.conf import settings
+
+from models import Entry, MicroEntry, Artifact
+
+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>)/$', 'object_detail',
+ dict(info_dict, queryset=Entry.objects.all(), slug_field='slug')),
+)