You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in scaffold: django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MODELForm needs updating.
#35
Open
vitallan opened this issue
May 22, 2017
· 0 comments
python manage.py scaffold MA_APP_NAME --model MA_MODEL_NAME char:name text:description
added the new urls in project urls
added MA_APP_NAME in INSTALLED_APPS
When I run runserver, I get this:
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MA_MODEL_NAMEForm needs updating.
I understand that the MA_MODEL_NAMEForm should add the 'fields' attribute, but woudn't it be right if the scaffold solved that for me? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Don't know if i'm doing anything wrong. Here are the steps that reproduce the problem:
python 3.4.3
django 1.11.1
django-common-helpers==0.9.1
python manage.py scaffold MA_APP_NAME --model MA_MODEL_NAME char:name text:description
added the new urls in project urls
added MA_APP_NAME in INSTALLED_APPS
When I run runserver, I get this:
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MA_MODEL_NAMEForm needs updating.
I understand that the MA_MODEL_NAMEForm should add the 'fields' attribute, but woudn't it be right if the scaffold solved that for me? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: