File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask_debugtoolbar/init.py", line 125, in dispatch_request
return view_func(**req.view_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cProfile.py", line 149, in runcall
return func(_args, *_kw)
File "/Users/tanyewei/dev/flask-cms/flask_cms/admin/utils.py", line 107, in wrapper
return view(_args, *_kwargs)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/views.py", line 84, in view
return self.dispatch_request(_args, *_kwargs)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request
return meth(_args, *_kwargs)
File "/Users/tanyewei/dev/flask-cms/flask_cms/admin/views.py", line 258, in get
return self.render()
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask_xxl/baseviews.py", line 36, in render
return render_template(self._template,**self._context)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/tanyewei/dev/flask-cms/flask_cms/admin/templates/add.html", line 3, in top-level template code
{% from 'buttons2.html' import get_button as Button %}
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/jinja2/environment.py", line 1029, in module
self._module = rv = self.make_module()
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/jinja2/environment.py", line 1013, in make_module
return TemplateModule(self, self.new_context(vars, shared, locals))
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/jinja2/environment.py", line 1070, in init
self._body_stream = list(template.root_render_func(context))
File "/Users/tanyewei/dev/flask-cms/flask_cms/templates/buttons2.html", line 47, in top-level template code
{%- if args['type'] == 'link' -%}
File "/Users/tanyewei/dev/flask-cms/env/lib/python2.7/site-packages/jinja2/environment.py", line 378, in getitem
return obj[argument]