To expand on the first answer, if you want something to appear in the browser, you need to return a value to the view.
For example else: msg = 'invalid statement' return dict(display_string=msg) The generic view will show the display_string (you can name the variable anything you want, as long as you use the same name in your view), or you can set up a view associated with this controller (login.html).

