I have a file settings.py
and two branches dev
and prod
.
In prod
the file could look like
DEBUG =False
URLS = ["some_url"]
USERS = ["user1","user2","user3"]
IPS = ["ip1","ip2"]
and in dev
DEBUG = True
URLS = ["some_url","test_url]
USERS = ["user1","user2","user3"]
IPS = ["ip1","ip2"]
Since I always need to have DEBUG=False
in prod
I would like to be able to chose which "lines" to be merge when I merge/checkout settings.py
from dev
to prod
, instead of open the file after the merge, and set that setting again.
This is of-course a toy-example, in the real file I have several lines I need to keep distinct