aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/urls.py
diff options
context:
space:
mode:
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')),
+)