Skip to main content

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'),
    }
}

python-readme-generator

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for import-env-file, version 2019.6.29
Filename, size File type Python version Upload date Hashes
Filename, size import-env-file-2019.6.29.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page