Move login template to index.html
This commit is contained in:
parent
603c29c8b4
commit
f4218775ae
2 changed files with 2 additions and 2 deletions
4
views.py
4
views.py
|
@ -12,7 +12,7 @@ def index(request):
|
|||
# Set a test cookie. When the user clicks the 'Login' button, test and make
|
||||
# sure this cookie was set properly.
|
||||
request.session.set_test_cookie()
|
||||
return render_to_response('login.html', RequestContext(request))
|
||||
return render_to_response('index.html', RequestContext(request))
|
||||
|
||||
|
||||
def login(request):
|
||||
|
@ -24,7 +24,7 @@ def login(request):
|
|||
return redirect('/login/github/')
|
||||
else:
|
||||
# Render an error -- fix your damn cookies!
|
||||
return render_to_response('login.html',
|
||||
return render_to_response('index.html',
|
||||
{ 'error': "Fix your damn cookies!" })
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue