谢谢,你的回复,但是我添加了一个,一直报错。
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\webapp\
_webapp25.py", line 701, in __call__
handler.get(*groups)
File "D:\work\gae\python\v2ex\
main.py", line 910, in get
output = template.render(path, template_values)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\webapp\
template.py", line 92, in render
return t.render(Context(template_dict))
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\webapp\
template.py", line 128, in wrap_render
return orig_render(context)
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 168, in render
return self.nodelist.render(context)
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 705, in render
bits.append(self.render_node(node, context))
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 718, in render_node
return(node.render(context))
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
defaulttags.py", line 209, in render
return self.nodelist_true.render(context)
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 705, in render
bits.append(self.render_node(node, context))
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 718, in render_node
return(node.render(context))
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
defaulttags.py", line 210, in render
return self.nodelist_false.render(context)
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 705, in render
bits.append(self.render_node(node, context))
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 718, in render_node
return(node.render(context))
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 767, in render
output = self.filter_expression.resolve(context)
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 563, in resolve
obj = resolve_variable(self.var, context)
File "C:\Program Files (x86)\Google\google_appengine\lib\django_0_96\django\template\
__init__.py", line 650, in resolve_variable
current = getattr(current, bits[0])
File "D:\work\gae\python\v2ex\v2ex\babel\
__init__.py", line 74, in created_ts
return self.created.strftime("%s")
ValueError: Invalid format string