草庐IT

PythonAnywhere

全部标签

python - 如何在 PythonAnywhere 上部署 web2py?

如何启动并运行基本的web2py服务器PythonAnywhere? 最佳答案 [更新-29/05]我们现在在网络选项卡上有一个大按钮,可以为您完成所有这些事情。只需单击显示Web2Py的位置,填写您的管理员密码,就可以开始了。这是具有历史意义的旧东西...我是一名PythonAnywhere开发人员。我们不是大量的web2py专家(还?),但我已经设法让web2py像这样启动并运行:首先下载并解压web2py:wgethttp://www.web2py.com/examples/static/web2py_src.zipunzip

Python-Flask - 如何在不指定目录的情况下访问 pythonanywhere.com 上的 sqlite database.db?

我在https://www.pythonanywhere.com上使用flask和sqlite3.在我自己的机器上,当我测试应用程序时,我不需要指定数据库的目录,例如db=sqlite3.connect("database.db")它完美地工作。在pythonanywhere上,我需要将其更改为db=sqlite3.connect("/path/to/database.db")因为当我不改变时,我会得到这个错误:InternalServerErrorTheserverencounteredaninternalerrorandwasunabletocompleteyourrequest.