I am new to almost all of this--first pull request on github, just started web.py today, working through Learn Python the Hard Way.
In anycase, I think I am correct that the indentation before "raise web.seeother('/') is a typo in the tutorial. In my own code, I needed to put it in line with n = ... and that also makes sense to me. Hope I'm right and this helps!
removed indent before "raise" in database section
Yeah, it should line up but now I think you have too little space. I'll tweak it. Thanks for noticing!