Move login template to index.html
This commit is contained in:
parent
5435ed5789
commit
d2fc4ca84b
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):
|
||||
|
@ -28,7 +28,7 @@ def login(request):
|
|||
# actually works.
|
||||
request.session.set_test_cookie()
|
||||
# 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