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

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

  •  
  •   won · Oct 12, 2010 · 5578 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/v2exv2ex/1.345439595379297693/place.py", line 95, in post
    template_values['l10n'] = l10n
    NameError: global name 'template_values' is not defined
    7 replies    1970-01-01 08:00:00 +08:00
    Feuda
        1
    Feuda  
       Oct 12, 2010
    你不会把语言设置为 English了吧,如果是的话,设置成中文试试...
    http://cl.ly/d50a5734f17259e62838
    won
        2
    won  
    OP
       Oct 12, 2010
    语言 中英全试过了 版本2.13.5
    dimlau
        3
    dimlau  
       Oct 12, 2010
    程序没更新完整吧……
    won
        4
    won  
    OP
       Oct 12, 2010
    编辑回帖时,也会出现类似问题
    但编辑主题很正常
    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
       Oct 12, 2010
    看见了之前的帖子 https://study.congcong.us/t/3203
    Feuda
        6
    Feuda  
       Oct 12, 2010
    一楼说反了...
    Livid
        7
    Livid  
    MOD
    PRO
       Oct 20, 2010
    试试最新的版本,这个问题已经解决了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   808 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 20:25 · PVG 04:25 · LAX 13:25 · JFK 16:25
    ♥ Do have faith in what you're doing.