You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "d:\program files\python36\lib\site-packages\flask\app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "d:\program files\python36\lib\site-packages\flask\app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "d:\program files\python36\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "d:\program files\python36\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "d:\program files\python36\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "D:\pycharmwork\Blog_mini\app\main\views.py", line 20, in index
pagination=pagination, endpoint='.index')
File "d:\program files\python36\lib\site-packages\flask\templating.py", line 135, in render_template
context, ctx.app)
File "d:\program files\python36\lib\site-packages\flask\templating.py", line 117, in _render
rv = template.render(context)
File "d:\program files\python36\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "d:\program files\python36\lib\site-packages\jinja2\environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "d:\program files\python36\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "d:\program files\python36\lib\site-packages\jinja2_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "D:\pycharmwork\Blog_mini\app\templates\index.html", line 2, in top-level template code
{% import "_macros.html" as macros %}
File "D:\pycharmwork\Blog_mini\app\templates\base.html", line 8, in top-level template code
{% block title %}
File "D:\pycharmwork\Blog_mini\app\templates\base.html", line 9, in block "title"
{{ BlogInfo.query.first().title }}
File "d:\program files\python36\lib\site-packages\jinja2\environment.py", line 430, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'BlogInfo' is undefined
请问这是什么原因,,
The text was updated successfully, but these errors were encountered:
File "d:\program files\python36\lib\site-packages\flask\app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "d:\program files\python36\lib\site-packages\flask\app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "d:\program files\python36\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "d:\program files\python36\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "d:\program files\python36\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "d:\program files\python36\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "D:\pycharmwork\Blog_mini\app\main\views.py", line 20, in index
pagination=pagination, endpoint='.index')
File "d:\program files\python36\lib\site-packages\flask\templating.py", line 135, in render_template
context, ctx.app)
File "d:\program files\python36\lib\site-packages\flask\templating.py", line 117, in _render
rv = template.render(context)
File "d:\program files\python36\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "d:\program files\python36\lib\site-packages\jinja2\environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "d:\program files\python36\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "d:\program files\python36\lib\site-packages\jinja2_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "D:\pycharmwork\Blog_mini\app\templates\index.html", line 2, in top-level template code
{% import "_macros.html" as macros %}
File "D:\pycharmwork\Blog_mini\app\templates\base.html", line 8, in top-level template code
{% block title %}
File "D:\pycharmwork\Blog_mini\app\templates\base.html", line 9, in block "title"
{{ BlogInfo.query.first().title }}
File "d:\program files\python36\lib\site-packages\jinja2\environment.py", line 430, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'BlogInfo' is undefined
请问这是什么原因,,
The text was updated successfully, but these errors were encountered: