diff options
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'}), |