Use a named url instead of the url to reference login view

This commit is contained in:
Eryn Wells 2012-08-18 18:27:56 -07:00
parent 934ea0a905
commit f306488b01

View file

@ -22,7 +22,7 @@ def login(request):
# Make sure the user can accept cookies. # Make sure the user can accept cookies.
if request.session.test_cookie_worked(): if request.session.test_cookie_worked():
request.session.delete_test_cookie() request.session.delete_test_cookie()
return redirect('/login/github/') return redirect('socialauth_begin', backend='github')
else: else:
# During development, I've landed here a lot, despite having cookies # During development, I've landed here a lot, despite having cookies
# enabled. So, set the test cookie so that trying to login from here # enabled. So, set the test cookie so that trying to login from here