diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-04 12:33:37 -0800 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-04 12:33:37 -0800 |
commit | 3a0e84add08b0028d4b08728073ddf9945dc3be0 (patch) | |
tree | 338327b8b1e67eb70b4a6e9893bb945f5c07a20a /bn_django/urls.py | |
parent | 7444d8455bff2d0de4ec48bee9e3ab4e843ca909 (diff) | |
download | bnewnet-3a0e84add08b0028d4b08728073ddf9945dc3be0.tar.gz bnewnet-3a0e84add08b0028d4b08728073ddf9945dc3be0.zip |
added GITWIKI_DIR var and added new knowledge to frontpage
Diffstat (limited to 'bn_django/urls.py')
-rw-r--r-- | bn_django/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bn_django/urls.py b/bn_django/urls.py index 2d833be..c413f39 100644 --- a/bn_django/urls.py +++ b/bn_django/urls.py @@ -1,13 +1,14 @@ from django.conf.urls.defaults import * from photos.models import Photo +import git_wiki.models urlpatterns = patterns('', # Example: # (r'^bn_django/', include('bn_django.foo.urls')), (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'frontpage.html','extra_context':dict({ \ - 'latest_photos':Photo.objects.order_by('date')[:2] \ + 'latest_photos':Photo.objects.order_by('date')[:2], \ #'latest_comments':Photo.objects.order_by('date')[:4] \ - #'latest_knowledge':Photo.objects.order_by('date')[:4] \ + 'latest_knowledge':git_wiki.models.shortlog() \ })}), (r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}), (r'^credits/$', 'django.views.generic.simple.direct_to_template', {'template': 'credits.html'}), |