신규 사용자 등록을 위해 register 버튼을 누를 경우에 오류 발생하여 디버그 기록을 남깁니다.
jinja2.exceptions.UndefinedError
UndefinedError: 'photolog.cache_session.CacheSession object' has no attribute 'user_info'
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1701, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1689, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/liks/project/photolog/photolog/controller/register_user.py", line 80, in register_user
return render_template('register.html')
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 125, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 107, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/home/liks/project/photolog/photolog/templates/register.html", line 25, in top-level template code
<form class="form-horizontal" action="{{ url_for('photolog.register_user', user=session.user_info.username) }}" method="post">
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 372, in getattr
[Display the sourcecode for this frame] [Open an interactive python shell in this frame] return getattr(obj, attribute)
UndefinedError: 'photolog.cache_session.CacheSession object' has no attribute 'user_info'