From f53aa53a6bac4c7ab284e7e22188c61b49513179 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sun, 6 Feb 2011 14:15:03 +0000 Subject: [PATCH] jumper: add stub index --- pyi2phosts/jump/urls.py | 1 + pyi2phosts/jump/views.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pyi2phosts/jump/urls.py b/pyi2phosts/jump/urls.py index 76a825c..b664ae5 100644 --- a/pyi2phosts/jump/urls.py +++ b/pyi2phosts/jump/urls.py @@ -2,5 +2,6 @@ from django.conf.urls.defaults import * urlpatterns = patterns('pyi2phosts.jump.views', (r'^([^$/]+)', 'jumper'), + (r'', 'index'), ) diff --git a/pyi2phosts/jump/views.py b/pyi2phosts/jump/views.py index 40ca829..181e75d 100644 --- a/pyi2phosts/jump/views.py +++ b/pyi2phosts/jump/views.py @@ -48,3 +48,6 @@ def jumper(request, host): 'title': settings.SITE_NAME, 'url': url, }) + +def index(request): + return redirect('/')