detect logged in users on the home page (mostly debugging social auth)

This commit is contained in:
Jonas Obrist 2012-08-18 17:23:15 +02:00
parent 28c6241553
commit 603c29c8b4
2 changed files with 5 additions and 1 deletions

View file

@ -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')
return render_to_response('login.html', RequestContext(request))
def login(request):