About 51 results
Open links in new tab
  1. What is the use of python-dotenv? - Stack Overflow

    Jan 9, 2017 · Need an example and please explain me the purpose of python-dotenv. I am kind of confused with the documentation.

  2. python - Is there a way to change the path to the .env file? - Stack ...

    Sep 10, 2024 · 2 If you are using python-dotenv, you can manually specify the path to the .env file in your main.py or wherever you're loading environment variables. Assuming your new structure looks …

  3. python - Как установить модуль dotenv? - Stack Overflow на русском

    Feb 13, 2023 · 2 Модуль называется python-dotenv, а не dotenv. Установите его командой pip install python-dotenv, и всё получится. Формальный перевод оригинального ответа со Stack Overflow …

  4. How to use python-dotenv for multiple environments

    Apr 23, 2024 · How to use python-dotenv for multiple environments Asked 1 year, 10 months ago Modified 1 year, 10 months ago Viewed 1k times

  5. For python-dotenv, is it better practice to use dotenv.load_dotenv ...

    Jul 27, 2023 · Is it better practice to use dotenv.load_dotenv() or dotenv.dotenv_values(".env")? In most examples that I've seen, people use load_dotenv(), with the os module. Is this better than simply …

  6. Default variables with python-dotenv - Stack Overflow

    Jan 20, 2023 · I want to make a package that works out of the box with reasonable default variables, like defining some servers, ports etc. so that the code works for an average user like he expects it …

  7. python - Environment Variable not loading with load_dotenv () in Linux ...

    Nov 8, 2020 · Insofar as this is principally a question about the dotenv library, which isn't part of Python or Linux itself, consider tagging for that library.

  8. How to use python-dotenv's "find_dotenv" method

    Dec 13, 2016 · I've pip-installed the python-dotenv module and am trying to use it as follows. I've created a directory test_dotenv with the following tree: . ├── config.env └── test_dotenv_subdir …

  9. How to load .env file for different environments in python?

    Nov 23, 2020 · I have three .env files for local, dev and prod environment and I have to load specific environments file while doing deployment for that server i.e If am doing DEV deployment then dev …

  10. python - Using updated dotenv value - Stack Overflow

    Apr 20, 2022 · Using updated dotenv value Asked 3 years, 10 months ago Modified 3 years, 10 months ago Viewed 2k times