title: django import error - No module named core.management
body: <p>Ok, I see plenty of these errors around. I have tried everything I know to do and have yet to figure this out.</p>
  
  <p>I am working on a development server running python 2.5 and Django 1.3. Django 1.3 was installed using python setup.py install after unpacking the tar.gz download.</p>
  
  <p>All works well, I seldom have the need to run <code>manage.py</code> but am trying to use the new staticfiles app and am running into problems.</p>
  
  <pre><code>python manage.py collectstatic
  Traceback (most recent call last):
    File "manage.py", line 2, in &lt;module&gt;
      from django.core.management import execute_manager
  ImportError: No module named core.management
  </code></pre>
  
  <p>Ok, so I have <code>PATH</code> issue.</p>
  
  <p>From <a href="http://docs.djangoproject.com/en/dev//topics/install/#finding-site-packages" rel="noreferrer">Django install</a> I double check my <code>site-packages</code> directory.</p>
  
  <pre><code>python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
  /usr/lib/python2.5/site-packages
  </code></pre>
  
  <p>Ok, let's check out what I have, echo $PYTHON_PATH was empty, so I set it</p>
  
  <pre><code>export PYTHON_PATH=/usr/lib/python2.5/site-packages/django
  </code></pre>
  
  <p>Still no luck. Lets check what sys.path has to say</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; print sys.path
  ['', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/django', '/var/lib/python-support/python2.5']
  </code></pre>
  
  <p>path is there, I even created /usr/lib/python2.5/site-packages/django.pth with contents</p>
  
  <pre><code>cat /usr/lib/python2.5/site-packages/django.pth 
  /usr/lib/python2.5/site-packages/django/
  </code></pre>
  
  <p>Anyone got an clues to what is going on here? </p>
  
  <p>I found a symlink further up the path that was getting in the way, but no on to a new error.</p>
  
  <pre><code>python manage.py collectstatic
  Traceback (most recent call last):
    File "manage.py", line 14, in &lt;module&gt;
      execute_manager(settings)
    File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 438, in execute_manager
      utility.execute()
    File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 349, in execute
      version=get_version(),
    File "/usr/lib/python2.5/site-packages/django/__init__.py", line 12, in get_version
      from django.utils.version import get_svn_revision
  ImportError: No module named utils.version
  </code></pre>
  
  <p>I also tried creating a new project to see if there were any issues there and get the same utils.version error.</p>
  
  <p>Side node: Unode from #django helped me a bit, set up virtualenv on same machine and got past the errors so still not sure what is up with this actual install here, but it seems to not be in the django projects but in the django/python install.</p>