Skip to content

Commit

Permalink
Updated django context processors format
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Feb 13, 2017
1 parent aa91438 commit d5e2dad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed
- Update partial-pipeline docs with the new storage solution details.
- Update django context-processors format

## [0.1.0](https://github.com/python-social-auth/social-docs/releases/tag/0.1.0) - 2016-12-31

Expand Down
20 changes: 14 additions & 6 deletions docs/configuration/django.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,20 @@ Template Context Processors
There's a context processor that will add backends and associations data to
template context::

TEMPLATE_CONTEXT_PROCESSORS = (
...
'social_django.context_processors.backends',
'social_django.context_processors.login_redirect',
...
)
TEMPLATES = [
{
...
'OPTIONS': {
...
'context_processors': [
...
'social_django.context_processors.backends',
'social_django.context_processors.login_redirect',
...
]
}
}
]

``backends`` context processor will load a ``backends`` key in the context with
three entries on it:
Expand Down

0 comments on commit d5e2dad

Please sign in to comment.