From 82c632ca2d9bc9a5892870759f0a78fa6758692c Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 7 Jun 2016 09:56:03 +1200 Subject: Upgrade to Django 1.6+ I'd like to be upgrading to 1.8 but that causes problems with South, and we're not quite ready to dispense with our existing migrations yet. Part of the implementation for [YOCTO #9620]. Signed-off-by: Paul Eggleton --- urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index aa4f8c5d21..98fc734814 100644 --- a/urls.py +++ b/urls.py @@ -5,8 +5,8 @@ # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. -from django.conf.urls.defaults import patterns, include, url -from django.views.generic.simple import redirect_to +from django.conf.urls import patterns, include, url +from django.views.generic import RedirectView from django.contrib import admin admin.autodiscover() @@ -16,6 +16,6 @@ urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^accounts/', include('registration.backends.default.urls')), url(r'^captcha/', include('captcha.urls')), - url(r'.*', redirect_to, {'url' : '/layerindex/'}) + url(r'.*', RedirectView.as_view(url='/layerindex/')), ) -- cgit 1.2.3-korg