diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-04 16:42:33 -0800 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-04 16:42:33 -0800 |
commit | 5b8d6138d3544ce14ad44598fbfbf42fc259865e (patch) | |
tree | d6a14761d5190ead1314d3ec9295a44dc05377c5 | |
parent | 3a0e84add08b0028d4b08728073ddf9945dc3be0 (diff) | |
download | bnewnet-5b8d6138d3544ce14ad44598fbfbf42fc259865e.tar.gz bnewnet-5b8d6138d3544ce14ad44598fbfbf42fc259865e.zip |
reformated urls file
-rw-r--r-- | bn_django/urls.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/bn_django/urls.py b/bn_django/urls.py index c413f39..425066b 100644 --- a/bn_django/urls.py +++ b/bn_django/urls.py @@ -5,15 +5,18 @@ 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({ \ + (r'^$', 'django.views.generic.simple.direct_to_template', + {'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() \ })}), - (r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}), - (r'^credits/$', 'django.views.generic.simple.direct_to_template', {'template': 'credits.html'}), - (r'^copyright/$', 'django.views.generic.simple.direct_to_template', {'template': 'copyright.html'}), - + (r'^about/$', 'django.views.generic.simple.direct_to_template', + {'template': 'about.html'}), + (r'^credits/$', 'django.views.generic.simple.direct_to_template', + {'template': 'credits.html'}), + (r'^copyright/$', 'django.views.generic.simple.direct_to_template', + {'template': 'copyright.html'}), (r'^knowledge/$', 'bn_django.git_wiki.views.frontpage',), (r'^k/', include('bn_django.git_wiki.urls')), @@ -26,7 +29,11 @@ urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), (r'^comments/', include('django.contrib.comments.urls.comments')), - (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/bnewbold/bn-project/static', 'show_indexes': True}), - (r'^style/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/bnewbold/bn-project/static/style'}), - (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/bnewbold/bn-project/media'}), + (r'^static/(?P<path>.*)$', 'django.views.static.serve', + {'document_root': '/home/bnewbold/bn-project/static', + 'show_indexes': True}), + (r'^style/(?P<path>.*)$', 'django.views.static.serve', + {'document_root': '/home/bnewbold/bn-project/static/style'}), + (r'^media/(?P<path>.*)$', 'django.views.static.serve', + {'document_root': '/home/bnewbold/bn-project/media'}), ) |