Not Logged In

django-chang 0.1.0

Chang is a utility library that I use when developing Django applications. Itcomes with Jinja2 for Django (which is highly inspired by [django-jinja][])and a few other utilities.

### chang.jinja2

The Jinja2 connection provided by *chang* provides a `{% csrf_token %}`that which can be used in the Jinja2 templates. The `CHANG_JINJA2_VERIFY`setting is used to determine whether a template should be loaded viathe Jinja2 Environment. It must be a callable object that accepts thetemplate name as a parameter.

`CHANG_JINJA2_ALWAYS` can be set to True to always load templates asJinja2 templates.

Make sure you add `chang.jinja2.FileSystemLoader` and/or`chang.jinja2.AppDirectoriesLoader` before the Django default templateloaders.

### chang.local

Provides a Django Middleware that makes the Django request objectavailable as a LocalProxy which can be accessed via `chang.local.request`or `chang.request`. Using this removes the requirement to pass theDjango request to each function that requires it.