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.

Sorry You must be a logged in, registered user to answer a question.

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': {}}

Yeah that's the code but I added a print command to print out the value to the console. Anyway I figured out a solution. See above.
lewesmint on
I'm a beginner so I really don't know but my base.py has DATABASES = { 'default': dj_database_url.config() }. I haven't printed what you mentioned. If you find a solution please do mention here
Chetan Kaushal on

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.

me too sorted :) ..thanks !! Cheers!!
Chetan Kaushal on
are you sorted with this ??
Chetan Kaushal on