Changed list.html to use url_for. Hopefully that will work better with deploying to a subdirectory.