M
M
Maxim Tarabrin2017-10-23 16:31:09
Django
Maxim Tarabrin, 2017-10-23 16:31:09

How to secure settings from the database when putting code on GitHub (GitBucket)?

Hello dear developers. When putting a project on github or gitbucket, it is often necessary to hide data from the database, secret_key and other data. Show a good practice, how can you organize the security of local settings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-10-23
@padr1no

https://docs.python.org/3/library/os.html#os.environ
os.environ.get('secret_key', 'default_value')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question