aboutsummaryrefslogtreecommitdiffstats
path: root/page/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'page/urls.py')
-rw-r--r--page/urls.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/page/urls.py b/page/urls.py
index daef1aa..8c195e9 100644
--- a/page/urls.py
+++ b/page/urls.py
@@ -4,10 +4,14 @@
#
from django.conf.urls import patterns, include, url
-from django.views.generic.base import TemplateView
+from django.views.generic.base import TemplateView, RedirectView
+from django.core.urlresolvers import reverse_lazy
urlpatterns = patterns('',
+ # test page
url(r'^test/$', TemplateView.as_view(template_name='test.html'),
name='test'),
+ # index page
+ url(r'^$', RedirectView.as_view(url=reverse_lazy('index'))),
)