More migrations to use RedirectView instead of redirect_to

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-04-02 08:45:38 +00:00
parent 62f37c69b0
commit 027e3b554c
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to
from django.views.generic import RedirectView
import views
urlpatterns = patterns('',
@ -9,10 +9,10 @@ urlpatterns = patterns('',
(r'^raw_post_view/$', views.raw_post_view),
(r'^redirect_view/$', views.redirect_view),
(r'^secure_view/$', views.view_with_secure),
(r'^permanent_redirect_view/$', redirect_to, {'url': '/test_client/get_view/'}),
(r'^temporary_redirect_view/$', redirect_to, {'url': '/test_client/get_view/', 'permanent': False}),
(r'^http_redirect_view/$', redirect_to, {'url': '/test_client/secure_view/'}),
(r'^https_redirect_view/$', redirect_to, {'url': 'https://testserver/test_client/secure_view/'}),
(r'^permanent_redirect_view/$', RedirectView.as_view(url='/test_client/get_view/')),
(r'^temporary_redirect_view/$', RedirectView.as_view(url='/test_client/get_view/', permanent=False)),
(r'^http_redirect_view/$', RedirectView.as_view(url='/test_client/secure_view/')),
(r'^https_redirect_view/$', RedirectView.as_view(url='https://testserver/test_client/secure_view/')),
(r'^double_redirect_view/$', views.double_redirect_view),
(r'^bad_view/$', views.bad_view),
(r'^form_view/$', views.form_view),