我试图在金字塔中创建一个 sqlalchemy 项目,当我运行服务器时,我收到了这个错误,
Pyramid is having a problem using your SQL database. The problem
might be caused by one of the following things:
1. You may need to run the "initialize_MyProject_db" script
to initialize your database tables. Check your virtual
environment's "bin" directory for this script and try to run it.
2. Your database server may not be running. Check that the
database server referred to by the "sqlalchemy.url" setting in
your "development.ini" file is running.
After you fix the problem, please restart the Pyramid application to
try it again.
当我检查我的 development.ini 文件时,sqlite 数据库配置为这样,
sqlalchemy.url = sqlite:///%(here)s/MyProject.sqlite
这里需要改变什么才能正确配置它?
我在linux机器上运行。