[Django]-Upgrading from Django 1.6.7 to 1.8.3, RuntimeError: Conflicting models in application

2๐Ÿ‘

I had the some problem. From within sa2 try

from sa2.models import Mo1, Mo2, Mo3 

or alternatively

from .models import Mo1, Mo2, Mo3

CATCH: be sure to use the same imports in your forms.py, tests.py or wherever else you import those models. If you update only one of the import it will not work and you will still get the same error.

The problem occurs because of a double import. For more information please see this : The Double Import Trap

Good luck

P.S. no __init__.py were hurt in the process

๐Ÿ‘คDimo

0๐Ÿ‘

Remove __init __.py file in project folder. I have same error when use test in Django and then I remove it, error is disappear.

๐Ÿ‘คtnductam

Leave a comment