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.
Source Distribution
Close
Hashes for import-env-file-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0959576cb24e86bee7cd3f5be730cf7f0135cb3bf10198bc96713a02b3d37ee |
|
MD5 | ddb033d277a1c0defde81b75d80f90b0 |
|
BLAKE2b-256 | 03b0f98fd3dcd9599d000d260f3b9ece58734f78ee5ee856ce4ed78cebb24b04 |