import .env file environment variables into python
Project description
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'),
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.