Development Artist

[Django, pyCharm] ImproperlyConfigured Exception : Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited 본문

TroubleShooting/Django Issue

[Django, pyCharm] ImproperlyConfigured Exception : Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited

JMcunst 2022. 9. 4. 13:40
728x90
반응형

이슈

장고 auth form을 커스텀하고 run 시 다음과 같은 이슈 발생.

django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited


해결

해당 ModelForm에 fields 속성을 추가한다.

 

728x90
반응형
Comments