Django 1.9a1 __init__.py is visible in eclipse/PyDev even though it should be deleted (Windows) Django 1.9a1 __init__.py is visible in eclipse/PyDev even though it should be deleted (Windows) windows windows

Django 1.9a1 __init__.py is visible in eclipse/PyDev even though it should be deleted (Windows)


The long story is described above, the short answer is:

I had an additional installation of django in my C:\Users\[my_username]\AppData\Local\VirtualStore\Program Files (x86)\Python 3.5\Lib\site-packages\django folder. This was due to installing the 1.9a1 version without admin rights.

Since eclipse was accessing django without admin rights as well, it used the outdated version, and not the recent one which was installed usind pip with admin rigths.

I deleted the C:\Users\[my_username]\AppData\Local\VirtualStore\Program Files (x86)\Python 3.5 folder and after a restart of eclipse everything worked.


What I remember helped me in a similar case was uninstalling Django completely and installing it over again:

pip uninstall djangopip install django==1.9.4

You may also need to check and manually remove django directory and the egg file if it is left in the C:\Program Files (x86)\Python 3.5\lib\site-packages directory after uninstalling django via pip.