title: manage.py syncdb is using another project's db in the virtualenv
body: <p>I have 2 sites, in the same virtual env, in 2 different apache VirtualHosts.</p>
  
  <p>When I run <code>python manage.py syncdb</code>, it says:</p>
  
  <pre><code>Creating tables ...
  Installing custom SQL ...
  Installing indexes ...
  Installed 0 object(s) from 0 fixture(s)
  </code></pre>
  
  <p>When I run <code>python manage.py inspectdb &gt; somefile.txt</code>, details of the other site appear in <code>somefile.txt</code>.</p>
  
  <p>So <code>python manage.py</code> is calling the file <code>/var/www/venv/proj1/manage.py</code> even when I'm sitting in the directory of: ``/var/www/venv/proj2/`. Any reason what would cause this or how to diagnose this?</p>
  
  <p>manage.py:</p>
  
  <pre><code>#!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proj1.settings")
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  </code></pre>
  
  <p>And this is how I checked $PYTHONPATH:</p>
  
  <pre><code># $PYTHONPATH
  -bash: /var/www/virtualenv-2.7/proj1:/var/www/virtualenv-2.7/proj2:: No such file or directory
  </code></pre>
  
  <p>And this is <code>.bash_profile</code>:</p>
  
  <pre><code># .bash_profile
  
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
          . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  
  PATH=$PATH:$HOME/bin
  
  export PATH
  
  
  PYTHONPATH=/var/www/virtualenv-2.7/proj2:$PYTHONPATH
  PYTHONPATH=/var/www/virtualenv-2.7/proj1:$PYTHONPATH
  export PYTHONPATH
  
  export DJANGO_SETTINGS_MODULE="proj2.settings" #possibly the issue?
  </code></pre>