W
W
weranda2022-01-31 20:14:06
Flask
weranda, 2022-01-31 20:14:06

Where to store database connection details in Flask?

Greetings.
There is a web application. Now the database accesses are stored in the application file. The project files will be uploaded to Github. Therefore, the question arose about the safe storage of sensitive data. You can add them to a separate file, pull them from it, and add that file to .gitignore. What would you advise in this situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2022-01-31
@weranda

You have already named one option - an imported file that is not included in the turnip. The second option is environment variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question