2016-06-02 2 views
-1

매우 복잡한 웹 응용 프로그램에 대해 로컬 개발 환경을 설정하려고합니다. 환경 설정에 대한 적절한 문서가 없으므로 이틀 동안 직접 오류를 해결하고 있습니다. 모든 오류를 해결 한 후 아래에 언급 된 시스템 검사 오류가 발생하며 이것이 의미하는 바를 이해하지 못합니까? 누군가가 도울 수 있으며, 이러한 오류의 의미와 해결 방법.시스템 검사 오류 받기

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'. 
+0

무엇을 시도해 봤는지 –

답변

2

클래스 credits.admin.creditshistoryAdmin는 속성 readonly_fields 있습니다.

관리자 목록에는 읽기 전용으로 표시되는 필드 목록 (ModelAdmin.readonly_fields의 문서 참조)입니다.

해당 목록의 항목은 호출 가능 또는 admin (creditshistoryAdmin) 또는 모델 (credits.CreditsHistory)의 속성이어야합니다. 그러나 30 번째와 31 번째 위치에있는 항목 (readonly_fields [29]와 [30])은 다른 것입니다.

추가 진단을 위해 credits.admin.creditshistoryAdmincredits.models.CreditsHistory 코드를 게시해야합니다.

+0

readonly_fields에 적어도 30 개의 항목이있는 것은 처음에는 심각한 사용성 문제와 비슷합니다. –