【发布时间】:2010-04-12 19:14:55
【问题描述】:
我有一个在 AppEngine 上运行良好的应用。 但是,当我尝试使用 dev_appserver.py 在本地运行它时,它会在 ~1 秒内中止:
~/ dev_appserver.py --debug_imports myapp
/opt/local/share/google_appengine/google/appengine/api/datastore_file_stub.py:40: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
/opt/local/share/google_appengine/google/appengine/api/memcache/__init__.py:31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
我使用的是 OS X 10.6.3、Python 2.6.4 + Django 1.1.1 + appengine 1.3.1(全部通过 macports 安装)
有什么想法吗? 谢谢!
【问题讨论】:
-
您确定它正在中止吗?这些只是警告信息;它完全崩溃了,你应该得到一个堆栈跟踪和一个实际的错误消息。
-
是的。它可能会正常退出,但它肯定不会以任何类似于 Django 开发服务器的方式继续运行,我也没有看到任何排除守护程序模式的 Python 进程正在运行(无论如何我都怀疑是这种情况)跨度>
标签: python django macos google-app-engine