Changed app/__init__.py.
Added a line setting lm.login_view to 'login', which is our view function in app/views.py.