V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
konglingchun
V2EX  ›  反馈

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

  •  
  •   konglingchun · Oct 14, 2010 · 5876 views
    This topic created in 5680 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    gonghao
        1
    gonghao  
       Oct 14, 2010
    同上,遇到同样的问题~
    won
        2
    won  
       Oct 14, 2010
    所有template_values['l10n'] = l10n 的问题,都是因为没有定义全局变量,具体做法看我发过的帖子
    Livid
        3
    Livid  
    MOD
    PRO
       Oct 15, 2010
    多谢。

    修复了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2155 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    ♥ Do have faith in what you're doing.