谁在用博客程序Doodle?

2011-06-01 04:29:45 +08:00
 wcanisay
RT。
新手,可能Setting.py配置有误,导致首页500。

fuxkgwf.appspot.com,高手帮忙看一下,给我指点迷津,不胜感谢!
4614 次点击
所在节点    Google App Engine
11 条回复
keakon
2011-06-01 19:44:41 +08:00
你得把后台的出错记录贴出来

还有,如果配置都不能自己搞定的话,我估计对你来说会很难用
c
2011-06-01 19:56:52 +08:00
@keakon 可能文件编码有问题,做个在线生成setting.py的页面呗。
wcanisay
2011-06-01 20:28:33 +08:00
错误日志:

500 134ms 35cpu_ms 12api_cpu_ms 0kb Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24 AppEngine-Google; (+http://code.google.com/appengine; appid: wcanisay),gzip(gfe)
64.233.172.17 - - [01/Jun/2011:05:22:46 -0700] "GET / HTTP/1.1" 500 0 - "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24 AppEngine-Google; (+http://code.google.com/appengine; appid: wcanisay),gzip(gfe)" "fuxkgwf.appspot.com" ms=135 cpu_ms=36 api_cpu_ms=12 cpm_usd=0.001036
E 2011-06-01 05:22:46.014
Traceback (most recent call last):
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/yui.py", line 1370, in __call__
handler.get(*groups, **groupdict)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/yui.py", line 1622, in cache_handler
handler(self, *args, **kw)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/view.py", line 25, in get
'page': 'home'
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/common.py", line 495, in echo
self.write(self.render(template, context, globals, layout))
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/common.py", line 492, in render
return engine.render(template, context, globals, layout)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/tenjin.py", line 1715, in render
template = self.get_template(template_name, context, globals)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/tenjin.py", line 1618, in get_template
raise TemplateNotFoundError('%s: filename not found (path=%r).' % (filename, self.path))
TemplateNotFoundError: home.html: filename not found (path=['template/iphonsta', 'template']).
E 2011-06-01 05:22:46.114
<class 'tenjin.TemplateNotFoundError'>: error.html: filename not found (path=['template/iphonsta', 'template']).
Traceback (most recent call last):
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/blog.py", line 67, in main
util.run_wsgi_app(application)
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 98, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 116, in run_bare_wsgi_app
result = application(env, _start_response)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/yui.py", line 1412, in find_domain
return wsgi_app(env, start_response)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/yui.py", line 1445, in redirect_if_needed
return wsgi_app(env, start_response)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/yui.py", line 1379, in __call__
handler.handle_exception(e)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/common.py", line 529, in handle_exception
self.display_exception(exception)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/common.py", line 536, in display_exception
'msg': format_exc() if self.request.is_admin else '我也不知道遇到了什么问题,如果刷新下还无法解决,您可以报告管理员。'
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/common.py", line 495, in echo
self.write(self.render(template, context, globals, layout))
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/common.py", line 492, in render
return engine.render(template, context, globals, layout)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/tenjin.py", line 1715, in render
template = self.get_template(template_name, context, globals)
File "/base/data/home/apps/fuxkgwf/blog.350794846972290235/tenjin.py", line 1618, in get_template
raise TemplateNotFoundError('%s: filename not found (path=%r).' % (filename, self.path))
jckwei
2011-06-01 23:25:11 +08:00
我曾经下载后只改APPid就可以正常打开首页
keakon
2011-06-02 12:21:41 +08:00
看上去你改了模板的设置或模板的路径或删了模板文件,这部分是不需要改动的。此外,在部署之前你得先在本地测试。

@c 不想做在线配置,获取时得访问datastore,而且有些设置是动态获取的、正则表达式和列表,这些玩意也不好在线配置。
wcanisay
2011-06-02 20:09:37 +08:00
@keakon 感谢回复!
wcanisay
2011-06-03 09:52:09 +08:00
找到原因了。
ENABLE_TAG_CLOUD = True
我修改成了false,但F没有大写。
汗!
wcanisay
2011-06-03 09:52:21 +08:00
感谢各位的回复!
wcanisay
2011-06-03 10:58:58 +08:00
不好意思,如何更改主题?
THEMES = ['koi', 'iphonsta', 'freshpress'] # 主题
应该就是更改主题的语句吧?如何修改?在哪里修改?
keakon
2011-06-03 12:18:32 +08:00
@wcanisay README.txt里有主题的制作说明。把你的模板文件放在“template\主题名”和“static\theme\主题名”下,然后把设置改成THEMES = ['主题名', '手机主题名', '后台主题名']
wcanisay
2011-06-03 12:27:36 +08:00
@keakon 非常感谢!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/13833

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX