在最新版本的2.5.0-dev-7中怎么添加节点?

2012-08-11 14:55:00 +08:00
 border
我从github上下载最新的版本SYSTEM_VERSION = '2.5.0-dev-7', 看了半天还是没有找到添加节点的地方。
4594 次点击
所在节点    Project Babel
3 条回复
mimzy
2012-08-11 16:37:07 +08:00
后台 - 区域 - 添加新节点
border
2012-08-11 18:19:36 +08:00
谢谢,你的回复,但是我添加了一个,一直报错。
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
border
2012-08-11 18:39:18 +08:00
搞定了,把return self.created.strftime("%s")里面的%s, 改成%S
http://www.tutorialspoint.com/python/time_strftime.htm
%S - second

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/44877

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX