永久会员
- 威望
- 1407
- 贡献
- 1493
- 热心值
- 0
- 金币
- 140
- 注册时间
- 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
你提供的代码是不是有问题
|
|