获取系统检查错误

2024-09-29 01:32:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图为一个非常复杂的web应用程序设置一个本地开发环境。没有合适的文档来设置环境,所以两天来我一直在自己解决错误。在解决了所有错误之后,我收到了下面提到的系统检查错误,我不明白它们的含义?有人能帮忙吗,这些错误意味着什么,以及如何解决它们。在

django.core.management.base.CommandError: System check identified some issues:

ERRORS:
<class 'credits.admin.creditshistoryAdmin'>: (admin.E035) The value of 'readonly_fields[29]' is not a callable, an attribute of 'creditshistoryAdmin', or an attribute of 'credits.CreditsHistory'.

<class 'credits.admin.creditshistoryAdmin'>: (admin.E035) The value of 'readonly_fields[30]' is not a callable, an attribute of 'creditshistoryAdmin', or an attribute of 'credits.CreditsHistory'.

Tags: oftheanfields环境adminisvalue
1条回答
网友
1楼 · 发布于 2024-09-29 01:32:39

credits.admin.creditshistoryAdmin具有属性readonly_fields。在

它是在管理中显示为只读的字段列表(请参见^{}上的文档)。在

该列表的项应该是可调用的,或者是管理员(creditshistoryAdmin)或模型(credits.CreditsHistory)的属性。但是第30位和第31位的项目(所以只读字段[29]和[30])是另一回事。在

为了进一步诊断,您必须发布credits.admin.creditshistoryAdmincredits.models.CreditsHistory的代码。在

相关问题 更多 >