From 953fc002832a9afe59372bf513ef167916608e05 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 7 Mar 2007 14:56:46 -0800 Subject: comments progress, style changes --- bn_django/urls.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bn_django/urls.py') diff --git a/bn_django/urls.py b/bn_django/urls.py index 425066b..eaf991e 100644 --- a/bn_django/urls.py +++ b/bn_django/urls.py @@ -1,5 +1,6 @@ from django.conf.urls.defaults import * from photos.models import Photo +from django.contrib.comments.models import Comment,FreeComment import git_wiki.models urlpatterns = patterns('', @@ -9,7 +10,11 @@ urlpatterns = patterns('', {'template': 'frontpage.html','extra_context':dict({ \ 'latest_photos':Photo.objects.order_by('date')[:2], \ #'latest_comments':Photo.objects.order_by('date')[:4] \ - 'latest_knowledge':git_wiki.models.shortlog() \ + 'latest_knowledge':git_wiki.models.shortlog(), \ + 'latest_comments':Comment.objects.order_by('-submit_date')[:4], \ + 'latest_freecomments': \ + FreeComment.objects.order_by('-submit_date')[:4], \ + 'newitems':git_wiki.models.newest_items(), \ })}), (r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}), -- cgit v1.2.3