aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/urls.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-04 04:31:39 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-04 04:31:39 -0800
commitf025a9f65ecd76e4442ce62684218ecb81506c9b (patch)
treeb303b156110167249c033751fa1c14ede2f75dc4 /bn_django/urls.py
parent08ef0f8e464fed2fe8ec20b6c53220aecc025f2d (diff)
downloadbnewnet-f025a9f65ecd76e4442ce62684218ecb81506c9b.tar.gz
bnewnet-f025a9f65ecd76e4442ce62684218ecb81506c9b.zip
basic html design roughed in, django project run and admin started
TODO: ie testing (ugh, fuck that) TODO: get photos section working TODO: ... etc
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'}),
)