title: Why does this code have this error: "Expected:)"?
body: <p>I am getting an error from Aptana "Expected:)" on this code at the <code>return render_to_response</code> line after the final <code>else:</code>.  I can't for the life of me figure out why that is, because as far as I can tell I have closed all of my parentheses.  I'm guessing that it is actually some other error and Aptana (Eclipse branch) is just not smart enough to give me the actual error.  When I attempt to load a webpage using another view in this file, it tells me only that it is a Syntax Error.</p>
  
  <pre><code>def login(request):
      if request.method == 'Post':
          username = request.POST['username']
          password = request.POST['password']
          user = authenticate(username=username, password=password)
          if user is not None:
              if user.is_active:
                  login(request, user)
                  return HttpResponseRedirect('/')
              else:
                  #return a 'disabled account' error message
                  return HttpResponseRedirect('/disabled_account/')
          else:
              return render_to_response('login.html', {
                                           'failed_login' : True,
                                           'form' : AuthenticationForm()
                                                      },
                                          context_instance=RequestContext(request),
                                       )
      else:
          return render_to_response('login.html' {
                                          'failed_login' : False,
                                          'form' : AuthenticationForm()
                                                      },
                                          context_instance=RequestContext(request),
                                       )
  </code></pre>