Django settings.cpython-36.pyc not ignored by gitignore
I was facing the same problem.
- First, make sure that you don't have any changes to commit;
- Edit or create your .gitignore and put the follow code:
*.log
*.pot
*.pyc
*/*/*/__pycache__/
*/*/__pycache__/
*/__pycache__/
- Save -> git add . -> git commit
- 'Clean Git Hub Cache' for your repo:
git rm -rf --cached .
git add .
- Commit and it's done!
I hope that this can help you.