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

不明其理,不知道算不算Bug,在“附近”里say出来的

  •  
  •   konglingchun · 2010-10-14 15:15:13 +08:00 · 4964 次点击
    这是一个创建于 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/v2ex/1.345445430106511738/place.py", line 95, in post
    template_values['l10n'] = l10n
    NameError: global name 'template_values' is not defined
    3 条回复    1970-01-01 08:00:00 +08:00
    gonghao
        1
    gonghao  
       2010-10-14 15:20:57 +08:00
    同上,遇到同样的问题~
    won
        2
    won  
       2010-10-14 15:49:25 +08:00
    所有template_values['l10n'] = l10n 的问题,都是因为没有定义全局变量,具体做法看我发过的帖子
    Livid
        3
    Livid  
    MOD
       2010-10-15 15:37:00 +08:00
    多谢。

    修复了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2830 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:09 · PVG 23:09 · LAX 08:09 · JFK 11:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.