A
A
Alexander2020-05-03 16:27:44
Python
Alexander, 2020-05-03 16:27:44

Why is dotenv needed?

Good afternoon, I decided to understand the topic of storing settings, the choice fell on storage in the .env file. I found such a dotenv library, read the description of the github of this library and looked at examples there, and I didn’t understand at all what it was for, if you can simply call it:

import os

os.getenv('Name', 'Not found name')


Perhaps I misunderstood something and someone can briefly explain how to use it correctly or for what?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question