The idea of this package is to unify a lot of packages that make the same stuff: Take a string from os.environ, parse and cast it to some of useful python typed variables. To do that and to use the 12factor approach, some connection strings are expressed as url, so this package can parse it and return a urllib.parse.ParseResult. These strings from os.environ are loaded from a .env file and filled in os.environ with setdefault method, to avoid overwriting the real environment. A similar approach is used in Two Scoops of Django book and explained in the 12factor-Django article. django-environ is the Python package that allows you to use the Twelve-factor methodology to configure your Django application with environment variables.For that, it gives you an easy way to configure Django application using environment variables obtained from an environment file and provided by the OS.

Features

  • The idea of this package is to unify a lot of packages that make the same stuff
  • Take a string from os.environ, parse and cast it to some of useful python typed variables
  • Fast and easy multi environment for deploy
  • Fill os.environ with .env file variables
  • Variables casting
  • Url variables exploded to django specific package settings
  • Optional support for Docker-style file based config variables

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow django-environ

django-environ Web Site

Other Useful Business Software
Train ML Models With SQL You Already Know Icon
Train ML Models With SQL You Already Know

BigQuery automates data prep, analysis, and predictions with built-in AI assistance.

Build and deploy ML models using familiar SQL. Automate data prep with built-in Gemini. Query 1 TB and store 10 GB free monthly.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of django-environ!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Development Software, Python Frameworks

Registered

2022-08-30