Update instructions about context processor static
parent
0e464ca7bb
commit
d0813e7a56
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue