Merge pull request #165 from Flimm/context-processor-fix

Update instructions about context processor static
master
Brandon Taylor 2017-03-07 20:29:55 -05:00 committed by GitHub
commit 99530d3ba4
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 ## Configuration
1. Add `adminsortable` to your `INSTALLED_APPS`. 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 3. Ensure that `CSRF_COOKIE_HTTPONLY` has not been set to `True`, as
django-admin-sortable is currently incompatible with that setting. django-admin-sortable is currently incompatible with that setting.

View File

@ -64,8 +64,12 @@ Configuration
------------- -------------
1. Add ``adminsortable`` to your ``INSTALLED_APPS``. 1. Add ``adminsortable`` to your ``INSTALLED_APPS``.
2. Ensure ``django.core.context_processors.static`` is in your 2. Ensure ``django.template.context_processors.static`` is in your
``TEMPLATE_CONTEXT_PROCESSORS``. ``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 3. Ensure that ``CSRF_COOKIE_HTTPONLY`` has not been set to ``True``, as
django-admin-sortable is currently incompatible with that setting. django-admin-sortable is currently incompatible with that setting.