
django-environment
Ever wanted something like environment variables for your Django app? Something along the lines of $USER, $HOME or any other arbitrary $VARIABLE from which you could pull data?
Django-environment is a system to provide environment variables to django apps. It accomplishes this through middleware and a number of "variable generators" that generate values for specified variables.
The environment variables are then easily accessible anywhere within the executing request thread, or from within the template. Variable generators are available for most common cases, and its a simple matter to create new variable generators.
Getting Started
- Start with the Installation page.
- Learn how to set up your environment with EnvironmentFiles
- Learn how to access your environment with AccessingEnvironmentVariables
Project Information
- License: New BSD License
- 2 stars
- svn-based source control
Labels:
django
environment
middleware