我对在我的 mongo 数据库中制作一个非常薄的烧瓶接口很感兴趣——只需几个简单的索引和表单来显示和编辑我的数据。
我正在关注MongoDB 的本教程,其中一些补充也很有帮助。
我第一次运行时python manage.py runserver
,一切正常。但是在添加视图和模板之后,第二次运行python manage.py runserver
应用程序似乎失败了:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
我有app.run(debug=True)
,但控制台中没有其他错误日志记录:
$ python manage.py runserver
* Running on http://localhost:5000/
* Restarting with reloader
127.0.0.1 - - [28/May/2013 14:45:14] "GET / HTTP/1.1" 500 -
127.0.0.1 - - [28/May/2013 14:45:14] "GET /favicon.ico/ HTTP/1.1" 404 -
其他人有这个问题吗?教程中是否缺少某些内容,或者是否有更好的方法来找出我的错误在哪里?任何其他关于在 MongoDB 上设置最小 Flask 层的建议也将不胜感激!