﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23621	Module autoreloading doesn't work due to some checks while loading an app	Sergey Pashinin	nobody	"When in IPython shell: {{{./manage.py shell}}} module autoreloading doesn't work and gives 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'>.
}}}

The problem is - when reloading a module - it has absolutely the same path and it cannot be changed to prevent a confusion with different modules (what this exception tries to do)

I tried this for example:


{{{
if model_name in app_models and str(app_models[model_name]) != str(model):
    ...
}}}


Found it here: https://github.com/django/django/commit/aff57793b46e108c6e48d5ce3b889bf90b513df9#diff-e0a696d19bf764562a439d3080a30fda
Pull request: https://github.com/django/django/pull/3310"	Bug	closed	Core (Other)	1.7	Normal	fixed		Loic Bistuer	Ready for checkin	1	0	0	0	0	0
