使用Flask写了个小程序,使用的是sqlite3,用的flask例子的部分代码:
DATABASE = 'sqlite.db'
def connect_db():
"""Returns a new connection to the database."""
return sqlite3.connect(app.config['DATABASE'])
在部署wsgi后,浏览器出500,error.log:
[Fri Nov 11 19:18:09 2011] [error] [client 127.0.0.1] OperationalError: no such table: user, referer:
http://127.0.0.1:8080/login
应该是路径问题吧,请问如何解决呢?