#22280: "Conflicting models in application" RuntimeError for same model with
different paths
-----------------------------------+------------------------------------
Reporter: blueyed | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by pashinin):
* status: closed => new
* resolution: worksforme =>
Comment:
This bug breaks IPython autoreloading feature. Modules can not be updated
with this error:
{{{
[autoreload of db.models failed: Traceback (most recent call last):
File "/pyenvs/p3/lib/python3.4/site-
packages/IPython/extensions/autoreload.py", line 247, in check
superreload(m, reload, self.old_objects)
RuntimeError: Conflicting 'language' models in application 'db': <class
'db.models.Language'> and <class 'db.models.Language'>.
}}}
Used "./manage.py shell" which drops me into IPython.
When imported paths are different - this bug can be fixed.
But here we have reloading of absolutely the same file (and path)
Can this error be hidden (at least while settings.DEBUG==True)? Any way to
throw it out?
It just breaks things.
--
Ticket URL: <https://code.djangoproject.com/ticket/22280#comment:31>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.8ce39519f27d7840ef965bbc84d58291%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.