Renamed src to web cause it looks better!
src -> web in import paths.
Bare bones login handler.

The status code I want returned (405) isn't happening yet though. In the logs,
status 200 still appears.
GET login is now returning 405 status code.

Problem is cherrypy.response.headers.status should be cherrypy.response.status .
Added web directory to the path mapping.

Since, we are to run main from just outside web, for the sake of Python packaging
rules.
Trying to integrate the login model with main.py.

Changed the login model function to login_check to avoid function namespace
collisions.

Can't test since the MySQL version at home is outdated and PLDT myDSL is too
drop dead slow to even update.
More like the defuze tutorial.
The DB tool is working at last.

Problem is, I should've enabled it in the config as well but I didn't.

Still not working as there seems to be some errors in my models.
Errors resolved but DB queries are not yet issued as I expect.
Login hit now completely working.

The problem was that queries return tuples no matter what. The nested query
cherrypy.request.db.query(q.exists()) also contains nested tuples. I had to
append [0][0] (multidimensional indexing) to get the actual boolean return value.