My favorites | Sign in
Project Logo
                
Code license: New BSD License
Labels: django, environment, middleware
Blogs:
Feeds:
People details
Project owners:
  loren.davie

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

  1. Start with the Installation page.
  2. Learn how to set up your environment with EnvironmentFiles
  3. Learn how to access your environment with AccessingEnvironmentVariables








Hosted by Google Code