Importerror: Cannot Import Name
I am using forms.ModelChoiceField to have the choice loaded from a specific model entries: from order.models import Region class CheckoutForm(forms.Form): area = forms.ModelCh
Solution 1:
As I mentioned in the comments, you have a circular dependency between your forms and models files. You'll either need to refactor to remove the circularity, or if you really can't do that you'll have to move one of the imports into the function where it's used.
Post a Comment for "Importerror: Cannot Import Name"