SAEspot » saespot (43)

本地测试发新帖子出错

By life at 2013-06-05 17:05:24

SAEspot



The server is temporary error now. 500


Traceback (most recent call last): File "C:\gae\saespot\yui.py", line 1461, in __call__ handler.post(*groups, **groupdict) File "C:\gae\saespot\view.py", line 514, in post con_md5 = md5(content.encode('utf-8')).hexdigest() NameError: global name 'md5' is not defined

Go to Home Page




Copyright © SAEspot

2 回复 | 直到 2013-06-09 16:29:12
life at 2013-06-05 17:05:41
1

请问是什么原因?

saespot at 2013-06-09 16:29:12
2

一个粗心漏了一个模块

参见 http://www.saespot.com/t-1-19

在view.py上面
import json 下面加上一行
from hashlib import md5