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
I ask the question generally, but in my specific instance I would like to store secret keys and passwords for a Django/Python site using git and github.
No, just don't, even if it's your private repo and you never intend to share it, don't.
You should create a local_settings.py put it on VCS ignore and in your settings.py do something like
from local_settings import DATABASES, SECRET_KEY
DATABASES = DATABASES
SECRET_KEY = SECRET_KEY
If your secrets settings are that versatile, I am eager to say you're doing something wrong