import-env-file

import .env file environment variables into python


Keywords
env, python
Install
pip install import-env-file==2019.6.29

Documentation

Travis

Installation

$ [sudo] pip install import-env-file

Examples

.env

DB_NAME="name"
...

settings.py

import import_env_file
import os

DATABASES = {
    'default': {
        'NAME': os.getenv('DB_NAME'),
    }
}

python-readme-generator