From b5cf7a030aa310ebc2e5260dc62b7466a60647e6 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 19 Dec 2012 09:43:10 +0100 Subject: [PATCH] Redirect home to admin home --- common/urls.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/urls.py b/common/urls.py index 6d839d5..54d4f97 100644 --- a/common/urls.py +++ b/common/urls.py @@ -1,14 +1,13 @@ from django.conf.urls import patterns, include, url from django.contrib import admin +from django.views.generic import RedirectView from stages import views admin.autodiscover() urlpatterns = patterns('', - # Examples: - # url(r'^$', 'epcstages.views.home', name='home'), - # url(r'^epcstages/', include('epcstages.foo.urls')), + url(r'^$', RedirectView.as_view(url='/admin/'), name='home'), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),