V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
won
V2EX  ›  Project Babel

V2上的nearby正常,自己的测试却不行

  •  
  •   won · 2010-10-12 16:55:58 +08:00 · 4729 次点击
    这是一个创建于 4944 天前的主题,其中的信息可能已经有所发展或是发生改变。
    错误提示:
    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 513, in __call__
    handler.post(*groups)
    File "/base/data/home/apps/v2exv2ex/1.345439595379297693/place.py", line 95, in post
    template_values['l10n'] = l10n
    NameError: global name 'template_values' is not defined
    7 条回复    1970-01-01 08:00:00 +08:00
    Feuda
        1
    Feuda  
       2010-10-12 17:01:45 +08:00
    你不会把语言设置为 English了吧,如果是的话,设置成中文试试...
    http://cl.ly/d50a5734f17259e62838
    won
        2
    won  
    OP
       2010-10-12 17:14:13 +08:00
    语言 中英全试过了 版本2.13.5
    dimlau
        3
    dimlau  
       2010-10-12 17:53:39 +08:00
    程序没更新完整吧……
    won
        4
    won  
    OP
       2010-10-12 17:56:50 +08:00
    编辑回帖时,也会出现类似问题
    但编辑主题很正常
    local variable 'template_values' referenced before assignment
    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
    File "/base/data/home/apps/v2exv2ex/1.345439595379297693/topic.py", line 788, in get
    template_values['l10n'] = l10n
    UnboundLocalError: local variable 'template_values' referenced before assignment
    won
        5
    won  
    OP
       2010-10-12 18:10:52 +08:00
    看见了之前的帖子 http://www.v2ex.com/t/3203
    Feuda
        6
    Feuda  
       2010-10-12 18:22:49 +08:00
    一楼说反了...
    Livid
        7
    Livid  
    MOD
       2010-10-20 14:15:41 +08:00
    试试最新的版本,这个问题已经解决了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3375 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:26 · PVG 20:26 · LAX 05:26 · JFK 08:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.