It should not raise any ImportError while there is a django package in sys.path .
If you're curious where django comes from, run:
python -c "import django; print django.__file__"
Then check Python "Module Path" .
UPDATE: As pointed out in the comments: note that the --no-site-packages option in virtualenv removes only the standard package site directory from sys.path . The remaining paths remain unchanged.
scoffey
source share