Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question