永久会员
- 威望
- 1403
- 贡献
- 1489
- 热心值
- 0
- 金币
- 132
- 注册时间
- 2022-10-25
|
楼主 File "/Users/apple/Desktop/pythonwork/zlbbs/templates/cms/cms_index.html", line 1, in top-level template code
{% extends 'cms/cms_base.html' %}
File "/Users/apple/Desktop/pythonwork/zlbbs/templates/cms/cms_base.html", line 58, in top-level template code
{% if cms_user.has_permission(CMSPermission.POSTER) %}
File "/Users/apple/Desktop/pythonwork/zlbbs/venv/lib/python3.10/site-packages/jinja2/environment.py", line 474, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'CMSPermission' is undefined
你提供的代码是不是有问题
|
|