Skip to main content

Django envfile

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")

Metadata

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 Provenance
django-envfile-0.1.5.tar.gz 2.1 kB Without provenance 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

Security for django-envfile 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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