小编jpx*_*jpx的帖子

使用 djangocms 发布页面更改时出现“NodeAlreadySaved”错误

使用djangocms发布页面更改时遇到错误。

当我跑时tail -f /var/log/apache2/error.log,它返回:

treebeard.exceptions.NodeAlreadySaved: Attempted to add a tree node that is already in the database, referer: http://47.95.254.172/?edit
Run Code Online (Sandbox Code Playgroud)

当我允许 settings.py DEBUG= True 并单击“发布页面更改”按钮时:

NodeAlreadySaved at /admin/cms/page/1/en/publish/
Attempted to add a tree node that is already in the database
Request Method: POST
Request URL:    http://47.95.254.172/admin/cms/page/1/en/publish/
Django Version: 3.1.7
Exception Type: NodeAlreadySaved
Exception Value:    Attempted to add a tree node that is already in the database
Exception Location: /root/env1/lib/python3.8/site-packages/treebeard/mp_tree.py, line 326, in process
Python Executable:  /root/env1//bin/python
Python Version: 3.8.5 …
Run Code Online (Sandbox Code Playgroud)

python django mod-wsgi django-cms apache2.4

8
推荐指数
2
解决办法
1003
查看次数

标签 统计

apache2.4 ×1

django ×1

django-cms ×1

mod-wsgi ×1

python ×1