我正在使用 Python,Flask-Login,
下面一行来自 Flask html
{% if current_user.is_authenticated() %
在 Ubuntu 操作系统中抛出以下错误,在 Windows 操作系统(W7)中运行良好
File "/home/user/workspace/test/templates/layout.html", line 27, in top-level template code
{% if current_user.is_authenticated() %}
UndefinedError: 'None' has no attribute 'is_authenticated'