| 1 | I recently have this error too using django 1.3. I have defined ModelForms in my views.py and i was importing them in my urls.py so that could be the cause of the problem. Later i try to change my generic views to class based views, but still have the problem because in my views.py where i defined my class based views i also import the ModelForms and it stills give me this error, so changing to class based views was not the solution. |
| 2 | |
| 3 | At IRC someone tell me to try to declare my views as strings instead of importing them in my urls.py (not working with class based views) and that solves the problem, because when reading the urls.py there is no direct imports from views.py. |
| 4 | |
| 5 | The problem could be when the ModelForm class is getting the information about the model. |
| 6 | |
| 7 | Reading all the comments and workarounds does not work for me. |
| 8 | |
| 9 | I dont have admin.py and the only place where i import ModelForms is at views.py |