I keep important settings like the hostnames and ports of development and production servers in my version control system. But I know that it\'s bad practice to kee
Usually, i seperate password as a config file. and make them dist.
/yourapp main.py default.cfg.dist
And when i run main.py, put the real password in default.cfg that copied.
main.py
default.cfg
ps. when you work with git or hg. you can ignore *.cfg files to make .gitignore or .hgignore
*.cfg
.gitignore
.hgignore