aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-04-29 18:43:24 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-04-29 18:43:24 +0100
commit03b078cce2cbfb093c4b2112a02b2bf9ecb14772 (patch)
treec5d1cb0a576e2afebe3d72c7c8507e0d0cdd223f
parent97da0ec9ae973139f04237cf76f1bcd717fbda1f (diff)
downloadbuildhistory-web-03b078cce2cbfb093c4b2112a02b2bf9ecb14772.tar.gz
buildhistory-web-03b078cce2cbfb093c4b2112a02b2bf9ecb14772.tar.bz2
buildhistory-web-03b078cce2cbfb093c4b2112a02b2bf9ecb14772.zip
Add top-level catch-all redirect to main page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index fb0b752..94e48ee 100644
--- a/urls.py
+++ b/urls.py
@@ -6,6 +6,7 @@
# All rights reserved.
from django.conf.urls.defaults import patterns, include, url
+from django.views.generic.simple import redirect_to
from django.contrib import admin
admin.autodiscover()
@@ -14,5 +15,6 @@ urlpatterns = patterns('',
url(r'^warningmgr/', include('warningmgr.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('registration.backends.default.urls')),
+ url(r'.*', redirect_to, {'url' : '/warningmgr/'})
)