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
- [Django]-Django-extensions test_error_logging
- [Django]-Django m2m_changed signal with custom through model
- [Django]-Django 1.4 primary key conflict after a bulk_create
- [Django]-Serving static files for development mode in Django
Source:stackexchange.com