V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
wcanisay
V2EX  ›  Google App Engine

谁在用博客程序Doodle?

  •  
  •   wcanisay · 2011-06-01 04:29:45 +08:00 · 4503 次点击
    这是一个创建于 4726 天前的主题,其中的信息可能已经有所发展或是发生改变。
    RT。
    新手,可能Setting.py配置有误,导致首页500。

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

    还有,如果配置都不能自己搞定的话,我估计对你来说会很难用
    c
        2
    c  
       2011-06-01 19:56:52 +08:00
    @keakon 可能文件编码有问题,做个在线生成setting.py的页面呗。
    wcanisay
        3
    wcanisay  
    OP
       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
        4
    jckwei  
       2011-06-01 23:25:11 +08:00
    我曾经下载后只改APPid就可以正常打开首页
    keakon
        5
    keakon  
       2011-06-02 12:21:41 +08:00
    看上去你改了模板的设置或模板的路径或删了模板文件,这部分是不需要改动的。此外,在部署之前你得先在本地测试。

    @c 不想做在线配置,获取时得访问datastore,而且有些设置是动态获取的、正则表达式和列表,这些玩意也不好在线配置。
    wcanisay
        6
    wcanisay  
    OP
       2011-06-02 20:09:37 +08:00
    @keakon 感谢回复!
    wcanisay
        7
    wcanisay  
    OP
       2011-06-03 09:52:09 +08:00
    找到原因了。
    ENABLE_TAG_CLOUD = True
    我修改成了false,但F没有大写。
    汗!
    wcanisay
        8
    wcanisay  
    OP
       2011-06-03 09:52:21 +08:00
    感谢各位的回复!
    wcanisay
        9
    wcanisay  
    OP
       2011-06-03 10:58:58 +08:00
    不好意思,如何更改主题?
    THEMES = ['koi', 'iphonsta', 'freshpress'] # 主题
    应该就是更改主题的语句吧?如何修改?在哪里修改?
    keakon
        10
    keakon  
       2011-06-03 12:18:32 +08:00
    @wcanisay README.txt里有主题的制作说明。把你的模板文件放在“template\主题名”和“static\theme\主题名”下,然后把设置改成THEMES = ['主题名', '手机主题名', '后台主题名']
    wcanisay
        11
    wcanisay  
    OP
       2011-06-03 12:27:36 +08:00
    @keakon 非常感谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   6193 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:48 · PVG 10:48 · LAX 19:48 · JFK 22:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.