heroku run gives error about settings
Hello, I could successfully run this: python manage.py syncdb, but when it was time to run heroku, with heroku run python manage.py syncdb I got this error: Could not import settings 'microblog.settings' (Is it on sys.path?): No module named settings
Answers
I had the same issue--my solution was to add the settings directory to git with git add settings/. For some reason the entire settings directory was not being tracked. We only want the avoid tracking the local settings file.
Of course, make sure your .gitignore excludes settings/local.py first...
I'm not familiar with git, and I had forgotten to add the new files in the settings folder. Anyway I did that, did the push heroku master, and now I got this error:
OperationalError: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?