Use a named url instead of the url to reference login view
This commit is contained in:
parent
934ea0a905
commit
f306488b01
1 changed files with 1 additions and 1 deletions
2
views.py
2
views.py
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue