Allow reloading the same app, #23621

The exception made it impossible to use IPython autoreloading.
This error is to prevent loading of different modules (with same base name) but it also blocks autoreloading of absolutely the same app.

original reopened ticket:
https://code.djangoproject.com/ticket/22280
new ticket:
https://code.djangoproject.com/ticket/23621