Error in heroku run python manage.py syncdb
This is the error I'm getting (I'm using django==1.5.1). I have completed this tuts with django==1.4.2 but didn't get such error. Did google search for this error and got just four links in results all useless. Please help ASAP
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check setti ngs documentation for more details.
Answers
Hey I just asked the exact same question.
In and effort ot debug I added a line to: print DATABASES and now when I do heroku run python manage.py syncdb DATABASES is printed out as {'default': {}}
I figured out a solution.
If you type heroku config you'll get the heroku environment values.
Mine only showed:
HEROKU_POSTGRESQL_BRONZE_URL: postgres://tcmgahtgsrmufa:iyA2dKD5bnO4f7jyv6MSu4453g@ec2-54-225-68-241.compute-1.amazonaws.com:5432/d6oj663f28smnh - there was no DATABASE_URL which dj_database_url.config needs. So then I found our from https://devcenter.heroku.com/articles/heroku-postgresql that you need to promote this to DATABASE_URL. The commands is : heroku pg:promote HEROKU_POSTGRESQL_RED_URL (replace with whatever environment variable your set-up is using). So far so good. I came here to post as soon as I tried this out. I haven't rerun yet but it should work.