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-2019.6.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db809eb428f9becef8883cdddc5bb539c444ceb8026e39742e78f8d9df433e24 |
|
MD5 | 9e950c104a39a671e4c8f06614d2a64d |
|
BLAKE2b-256 | 9a504917ac7892e29a2cdd641f5aca31d028276d759660f86c2b9a3676e9a065 |