Changes between Initial Version and Version 1 of Ticket #10405, comment 28


Ignore:
Timestamp:
Apr 6, 2011, 7:08:56 PM (14 years ago)
Author:
Camilo Nova

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10405, comment 28

    initial v1  
     1I 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
     3At 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
     5The problem could be when the ModelForm class is getting the information about the model.
     6
     7Reading all the comments and workarounds does not work for me.
     8
     9I dont have admin.py and the only place where i import ModelForms is at views.py
Back to Top