Skip to main content

A install

pip install django-envfile

Created file .env

DJANGO_SECRET_KEY="ko8n3#^m#67+p@bvx#1xp0om+!zo@&l8-*8n(c#47n)=!3t$hd"
DJANGO_DATABASE_HOST=database
DJANGO_DATABASE_NAME=cerezo_master

In settings.py

from pathlib import Path
from os.path import join, abspath
from envfile import loadenv # django-envfile

BASE_DIR = Path(__file__).parent.parent  # src

location = lambda path: abspath(join(BASE_DIR, path))
loadenv(location('.env')) # Paths file .env

SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", "Ahri")

Release files for django-envfile 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-envfile 0.1.5
File Size Uploaded
django-envfile-0.1.5.tar.gz 2.1 kB Details

Release files / django-envfile-0.1.5.tar.gz

Download URL django-envfile-0.1.5.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
994bcfd7c61b6ae2d27b3cf68aba5f1aa381eabc365a9e68811cd9c7cc8a6a3c
BLAKE2b-256 checksum
How to use checksums
d9d3820e65b12afd66cd5494c7cc2808e974841e0675142cdb0714f70d29edce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page