aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/urls.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-03-07 14:56:46 -0800
committerbnewbold <bnewbold@manus.(none)>2007-03-07 14:56:46 -0800
commit953fc002832a9afe59372bf513ef167916608e05 (patch)
tree73ba59d2479d240c7b14d9e1757b9e5cecad5fb6 /bn_django/urls.py
parent8a459f1bfcad487d6e594b9c3d7ca485a9084f49 (diff)
downloadbnewnet-953fc002832a9afe59372bf513ef167916608e05.tar.gz
bnewnet-953fc002832a9afe59372bf513ef167916608e05.zip
comments progress, style changes
Diffstat (limited to 'bn_django/urls.py')
-rw-r--r--bn_django/urls.py7
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'}),