summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-30 18:44:00 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:24:42 -0200
commit680d9d30dffeb82db6feb26f3f10a7c8645ec879 (patch)
tree960f3f6046aa00beb61538d94234c2e96b602daa /urls.py
parentb4999b495e828ff68a5c93f65a39efad5b37dcea (diff)
downloadarchweb-680d9d30dffeb82db6feb26f3f10a7c8645ec879.tar.gz
archweb-680d9d30dffeb82db6feb26f3f10a7c8645ec879.zip
use direct_to_template to replace static views
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/urls.py b/urls.py
index 17d06dbb..9aa879b1 100644
--- a/urls.py
+++ b/urls.py
@@ -3,6 +3,7 @@ from django.conf import settings
from django.contrib import admin
from django.views.generic.create_update import delete_object
+from django.views.generic.simple import direct_to_template
from django.contrib.auth.decorators import permission_required
from archweb.main.models import Todolist
@@ -62,14 +63,14 @@ urlpatterns = patterns('',
# (mostly) Static Pages
(r'^$', 'archweb.public.views.index'),
- (r'^about/$', 'archweb.public.views.about'),
- (r'^art/$', 'archweb.public.views.art'),
- (r'^svn/$', 'archweb.public.views.svn'),
+ (r'^about/$', direct_to_template, {'template': 'public/about.html'}),
+ (r'^art/$', direct_to_template, {'template': 'public/art.html'}),
+ (r'^svn/$', direct_to_template, {'template': 'public/svn.html'}),
(r'^developers/$', 'archweb.public.views.developers'),
(r'^fellows/$', 'archweb.public.views.fellows'),
(r'^donate/$', 'archweb.public.views.donate'),
(r'^download/$', 'archweb.public.views.download'),
- (r'^irc/$', 'archweb.public.views.irc'),
+ (r'^irc/$', direct_to_template, {'template': 'public/irc.html'}),
(r'^moreforums/$', 'archweb.public.views.moreforums'),
(r'^projects/$', 'archweb.public.views.projects'),
('^jsi18n/$', 'django.views.i18n.null_javascript_catalog',