Tuesday, September 26, 2017

Test runner returning error with multi file models

I have an app with multi-file models

myapp/
   |- models/
       |- __init__,py
       |- user.py


When I am running python manage.py test it returns:

RuntimeError: Conflicting 'user_groups' models in application...

But when I use only a single `models.py` file it works. Is this a bug? or am i doing something wrong?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/90cafba5-8b28-4df0-86f2-97302e4a2c56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment