diff options
Diffstat (limited to 'bn_django/urls.py')
-rw-r--r-- | bn_django/urls.py | 7 |
1 files changed, 6 insertions, 1 deletions
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'}), |