2

I pushed my app to heroku after making sure it works fine in my local environment.

When I try to sync db using:

    heroku run myapp/manage.py syncdb

I see just this. No tables are created.

    Running myapp/manage.py syncdb attached to terminal... up, run.1

And my app fails when it tries to access the db with this error.

    Exception Type: DatabaseError at /oauth_callback/
    Exception Value: relation "django_session" does not exist

Any ideas on what I might be doing wrong?

Aswath Krishnan
  • 1,131
  • 1
  • 9
  • 16
  • 1
    I have no experience with Heroku but the docs do contain an example that differs from the one you're entering: `heroku run _python_ myapp/manage.py syncdb`. – roam Mar 13 '12 at 20:12
  • 1
    Thanks that worked. `heroku run python myapp/manage.py syncdb` – Aswath Krishnan Mar 14 '12 at 10:17

1 Answers1

4

This worked for me. Thanks Roam: heroku run _python_ myapp/manage.py syncdb

Aswath Krishnan
  • 1,131
  • 1
  • 9
  • 16