用SAEspot GAE版搭建了个站点,但是发帖出问题,对Python不懂,请问怎么办

By philosky at 2014-05-20 18:24:55

提示的错误信息
The server is temporary error now. 500

Traceback (most recent call last): File "/base/data/home/apps/s~philohub/1.375961773634405806/yui.py", line 1461, in __call__ handler.post(*groups, **groupdict) File "/base/data/home/apps/s~philohub/1.375961773634405806/view.py", line 514, in post con_md5 = md5(content.encode('utf-8')).hexdigest() NameError: global name 'md5' is not defined

8 回复 | 直到 5 月前
philosky at 2014-05-20 18:29:22
1

站点地址
www.ihub.ml

saespot at 2014-05-20 20:09:39
2

在view.py 里面添加下面一行。

from hashlib import md5

添加位置在头部,参见其他import 模块的地方。

philosky at 2014-05-21 11:36:07
3

@saespot 还有头像的问题,我发现在这里可以识别我的Gravatar头像,貌似网上发布的那个版本不支持?

philosky at 2014-05-21 11:42:48
4

@saespot 而且手机版也没有,求最新的源码

philosky at 2014-05-21 16:25:56
5

@saespot
发现新问题
分类简介有换行的时候,会提示错误,如下:

The server is temporary error now. 500

Traceback (most recent call last): File "/base/data/home/apps/s~philohub/1.375986870822839366/yui.py", line 1461, in __call__ handler.post(*groups, **groupdict) File "/base/data/home/apps/s~philohub/1.375986870822839366/view.py", line 700, in post n_obj.about = about File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/db/__init__.py", line 614, in __set__ value = self.validate(value) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/db/__init__.py", line 2847, in validate raise BadValueError('Property %s is not multi-line' % self.name) BadValueError: Property about is not multi-line

philosky at 2014-05-21 18:41:28
6

@saespot
不支持手机版,老大求最新源码

saespot at 2014-07-05 10:15:42
7

@philosky 不过又有新问题,需要又拍云支持。

life at 5 月前
8

@saespot
老大,求支持手机版的最新源码!
老大,能不能继续开发这个程序!