O
O
Ozrae2020-01-23 15:38:01
Django
Ozrae, 2020-01-23 15:38:01

What information should be hidden from other people?

I hid the secret key when uploading the project to github like this: https://stackoverflow.com/questions/31883505/how-t...
But besides it, the postgresql database has ENGINE, NAME, USER, PASSWORD, HOST, PORT parameters - if someone else finds out this data, will he be able to connect to my database? And do all these parameters need to be hidden or just the password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2020-01-23
@Ozrae

Database accesses are sensitive data. They should be passed in the same way as SECRET_KEY, like Redis accesses (for example). For convenient work with this, there is a dj_database_url module, which makes it possible to transfer access to the database to one environment variable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question