aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/urls.py')
-rw-r--r--bn_django/urls.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/bn_django/urls.py b/bn_django/urls.py
index 35b9796..f8b1b62 100644
--- a/bn_django/urls.py
+++ b/bn_django/urls.py
@@ -3,10 +3,18 @@ from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^bn_django/', include('bn_django.foo.urls')),
- (r'^knowledge/', include('bn_django.bn_wiki.urls')),
- (r'^code/', include('bn_django.code_browser.urls')),
- (r'^photos/', include('bn_django.photo_gallery.urls')),
+ (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'frontpage.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/', include('bn_django.git_wiki.urls')),
+ (r'^code/', include('bn_django.git_browse.urls')),
+ (r'^photos/', include('bn_django.photos.urls')),
# Uncomment this for admin:
(r'^admin/', include('django.contrib.admin.urls')),
+ (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'}),
)