Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow loading of environment variables into the config #4479

Merged
merged 3 commits into from Mar 25, 2022

Commits on Mar 25, 2022

  1. Allow loading of environment variables into the config

    This new method will pick out any environment variables with a certain
    prefix and place them into the config named without the prefix. This
    makes it easy to use environment variables to configure the app as is
    now more popular than when Flask started.
    
    The prefix should ensure that the environment isn't polluted and the
    config isn't polluted by environment variables.
    
    I've followed the dynaconf convention of trying to parse the
    environment variable and then falling back to the raw value if parsing
    fails.
    pgjones authored and davidism committed Mar 25, 2022
    Copy the full SHA
    08a283a View commit details
    Browse the repository at this point in the history
  2. more from_prefixed_env features

    * support nested dict access with "__" separator
    * don't specify separator in prefix
    * catch exceptions for any loads function
    davidism committed Mar 25, 2022
    Copy the full SHA
    4eb5e94 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    e75d575 View commit details
    Browse the repository at this point in the history