title: heroku - DatabaseError: relation "south_migrationhistory" does not exist
body: <p>i purchased an outsource service to develop a web site in django to be deployed in heroku and AWS S3 (boto package).
  Unfortunately the developer did not comment the code, despite it was asked, and left the project uncompleted for following up with a bigger client.
  I've hired another django 'expert' to fix a part which was not developed, and he want to (over)charge for deployment testing, which i think should be a normal matter for good practices! i am working on my own budject, and need to work it out myself.</p>
  
  <p>I was able to make the project run locally and make myself the frontend templates which were not fully developed, but I am having issues in deploying the code on my own staging environment.</p>
  
  <p>I set up a staging environment under my credential to check if everything is ok, before pushing to production.</p>
  
  <p>I think I almost get there, though:</p>
  
  <pre><code>heroku run python manage.py migrate --all --noinput --app my-app-staging
  </code></pre>
  
  <p>generate in the console:</p>
  
  <pre><code>Running `python manage.py migrate --all --noinput` attached to terminal... up, run.4833
  </code></pre>
  
  <p>DatabaseError: relation "south_migrationhistory" does not exist
  LINE 1: ...gration", "south_migrationhistory"."applied" FROM "south_mig...</p>
  
  <p>In the browser:</p>
  
  <pre><code>DatabaseError at /
  relation "django_site" does not exist
  LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
                                                               ^
  Request Method: GET
  Request URL:    http://my-app-staging.herokuapp.com/
  Django Version: 1.5.6
  Exception Type: DatabaseError
  Exception Value:    
  relation "django_site" does not exist
  LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
                                                               ^
  Exception Location: /app/.heroku/python/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py in execute, line 5
  </code></pre>
  
  <p>I checked my settings and they look ok:
  i check AWS S3 bucket and it is able to write there;
  settings in heroku console display that the db has been created.</p>
  
  <p>I followed: 
  <a href="https://stackoverflow.com/questions/15467389/heroku-created-table-but-when-ill-migrate-he-says-that-doesnt-created">Heroku created table but when I&#39;ll migrate, he says that doesn&#39;t created</a></p>
  
  <p>but it looks my locals.py are ok too, and in my local git branch .gitignore will exclude db.sqlite </p>
  
  <p>My git and heroku ssh keys have been generated and added, so i dont' think it is an issue of authentification.</p>
  
  <p>How could i check that the db is properly connected to django project and I am not invalidated?
  Could you please help in debriefing to understand what this error means and how to solve it?</p>
  
  <p>So much thank you.</p>