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
Get full visibility and control over your tasks and projects with Wrike. Icon
Get full visibility and control over your tasks and projects with Wrike.

A cloud-based collaboration, work management, and project management software

Wrike offers world-class features that empower cross-functional, distributed, or growing teams take their projects from the initial request stage all the way to tracking work progress and reporting results.
Learn More
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