我刚部署了我的应用程序,一旦我进入主页,就会收到'500内部服务器错误'页面。通过日志说完看着我得到了以下错误:App Engine在部署数字格式时出现错误
type 'exceptions.SyntaxError'>: Non-ASCII character '\xc2' in file /base/data/home/apps/spare-wheels/1.348259065130939449/sparewheels.py on line 465, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (sparewheels.py, line 465)
这行看起来是这样的:
self.template_values['price_pounds'] = "£%.2f" % (float(self.event.price_pence)/100)
这工作得很好,当本地主机上运行:是否有一些关于数字格式,谷歌Python的应用版本不支持?