我新邀请了一个朋友加入我的 project, 然后试了一下 mention 的功能。当我点击自己输入的 @
username (朋友的 username. 他还没有受邀加入)时,出现了 error:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/tornado-2.1.1-py2.6.egg/tornado/web.py", line 954, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/workspace/workspace/security.py", line 44, in wrapper
return method(self, *args, **kwargs)
File "/www/workspace/workspace/handlers/desktop/project/team/__init__.py", line 168, in get
self.finalize('project/team/not_in_team', 'html')
File "/www/workspace/workspace/handlers/desktop/__init__.py", line 29, in finalize
template = self.env.get_template('desktop/' + template_name + '.' + template_type)
File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 719, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 693, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/loaders.py", line 115, in load
source, filename, uptodate = self.get_source(environment, name)
File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/loaders.py", line 227, in get_source
raise TemplateNotFound(template)
TemplateNotFound: desktop/project/team/not_in_team.html