Skip to content

Commit

Permalink
Adjusts the documentation to better state how to use a different temp…
Browse files Browse the repository at this point in the history
…late.

#4 showed that the documentation hasn't been clear about how to use a
different template. This commit clarifies the documentation in this regard.
  • Loading branch information
Dunedan committed Jun 30, 2015
1 parent be5c50f commit 03dd78b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.rst
Expand Up @@ -229,5 +229,12 @@ Templates
default template displays a simple "coming soon" message and the
preview authorization form.

If you want to override this template, the lockdown preview form is available
in the template context as ``form``.
If you want to use a different template, you can use Djangos
`TEMPLATE_LOADERS`_ configuration option to specify a path inside your project
to search for templates, before searching for templates included in
``django-lockdown``.

In your overwritten template the lockdown preview form is available in the
template context as ``form``.

.. _TEMPLATE_LOADERS: https://docs.djangoproject.com/en/1.8/ref/settings/#template-loaders

0 comments on commit 03dd78b

Please sign in to comment.