I have a different settings.py
for my local project and my live project (Bitbucket repo). So I have added settings.py
to my .gitignore
so when I make changes to either file, they don't get sent to the other repo when my git is pulled or pushed.
However, I just did a git pull
from my local repo - and it did a merge and changed the settings.py
file to the Bitbucket settings.py
.
What is going on?
Edit - Gitignore file:
/lib
/media
.env
/include
/reports
.DS_Store
*.pyc
celerybeat-schedule.db
__pycache__/
db.sqlite3
log.django
settings.py
static/
/static