python - Django / From redirect_to to RedirectView -


since know, can't use django.views.generic.simple import redirect_to in django 1.5. using kind of functions in our views.py:

return redirect_to(request, '/auth/login/')

i want migrate 1.4 1.5 couldn't figure out how use redirectview in views.py request , url argument.

you can use redirect instead

now can change redirect_to to

return redirect('/auth/login') 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -