In my application there is a configuration file in plain text. It contains some sensitive information in the application of my dev environment. It is necessary to test. I use different OS to work and work on my projects (Win, Mac, ...)
I do not want any information in configuration files to create this in my public GIT repository. In the best case I want to replace sensitive information with placeholders and in the repository to find out its structure I have uploaded the configuration files.
How do you approach this problem?
There will be no problem writing the hook in itself, I am more interested in how to bind it all together, possible directory structure etc. I am quite new in GIT
Jango is a conference in the world that you can use - there is a standard settings. Py
file that finally imposes a local_settings module
is available only one.
Place all of the code in the local_settings.py
file and add it to .gitignore
so that this repository, in this way, people will know that they < Code> local_settings .
For example,
settings.py
:
DATABASE_USERNAME = 'Your username here' DATABASE_PASSWORD = 'Your The password is here. '
local_settings.py
:
DATABASE_USERNAME =' My top secret user name 'DATABASE_PASSWORD =' My secret Secret password '
The best part is that whatever you have defined in settings
Comments
Post a Comment