Update instructions about context processor static

master
David D Lowe 2017-03-07 13:51:43 +01:00
parent 0e464ca7bb
commit d0813e7a56
2 changed files with 8 additions and 3 deletions

View File

@ -43,7 +43,8 @@ Download django-admin-sortable from [source](https://github.com/iambrandontaylor
## Configuration
1. Add `adminsortable` to your `INSTALLED_APPS`.
2. Ensure `django.core.context_processors.static` is in your `TEMPLATE_CONTEXT_PROCESSORS`.
2. Ensure `django.template.context_processors.static` is in your `TEMPLATES["OPTIONS"]["context_processors"]`.
- (In older versions of Django, ensure `django.core.context_processors.static` is in `TEMPLATE_CONTEXT_PROCESSORS` instead.)
3. Ensure that `CSRF_COOKIE_HTTPONLY` has not been set to `True`, as
django-admin-sortable is currently incompatible with that setting.

View File

@ -64,8 +64,12 @@ Configuration
-------------
1. Add ``adminsortable`` to your ``INSTALLED_APPS``.
2. Ensure ``django.core.context_processors.static`` is in your
``TEMPLATE_CONTEXT_PROCESSORS``.
2. Ensure ``django.template.context_processors.static`` is in your
``TEMPLATES["OPTIONS"]["context_processors"]``.
- (In older versions of Django, ensure ``django.core.context_processors.static`` is in
``TEMPLATE_CONTEXT_PROCESSORS`` instead.)
3. Ensure that ``CSRF_COOKIE_HTTPONLY`` has not been set to ``True``, as
django-admin-sortable is currently incompatible with that setting.