[Django]-GSWD Heroku Django manage.py issue

5👍

As far as I know ( git intermediate level knowledge ) If you forgot to add locals.py to the .gitignore file and committed it then the git repository will have the locals.py file still in it .

You have to remove the file from git repository since it was included in previous commits.

git rm --cached microblog/settings/local.py

Then add microblog/settings/local.py to .gitignore and commit the changes.

Once heroku sees the correct DATABASES setting . Then syncdb works fine

DATABASES = {'default' : dj_database_url.config() }

2👍

did you add:
microblog/settings/local.py
to the .gitignore file ?

if that doesn’t work try commenting out the DATABASES = {….} bit in the local.py file and see if that works

https://github.com/kennethlove/gswd-transcripts/blob/master/lesson-01.md

Leave a comment