diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-01-21 13:38:52 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-01-23 10:30:10 -0500 |
| commit | 7d607127e39792aa45b6abc2619b99fc55bcc672 (patch) | |
| tree | bec3a8e16ac489b669d63fb5025b0f05896f683c /docs | |
| parent | f0f383b6350c7b2f64bb2a6491a395abdd3313d6 (diff) | |
Refs #21221 -- Deprecated staticfiles and admin_static template tag libraries.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/internals/deprecation.txt | 5 | ||||
| -rw-r--r-- | docs/releases/2.1.txt | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index f601b035ca..df817041df 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -33,6 +33,11 @@ details on these changes. * ``django.utils.http.cookie_date()`` will be removed. +* The ``staticfiles`` and ``admin_static`` template tag libraries will be + removed. + +* ``django.contrib.staticfiles.templatetags.static()`` will be removed. + See the :ref:`Django 2.1 release notes <deprecated-features-2.1>` for more details on these changes. diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt index 3465f41ce5..d7de90903c 100644 --- a/docs/releases/2.1.txt +++ b/docs/releases/2.1.txt @@ -274,6 +274,12 @@ Miscellaneous :func:`~django.utils.http.http_date`, which follows the format of the latest RFC. +* ``{% load staticfiles %}`` and ``{% load admin_static %}`` are deprecated + in favor of ``{% load static %}``, which works the same. + +* ``django.contrib.staticfiles.templatetags.static()`` is deprecated in favor + of ``django.templatetags.static.static()``. + .. _removed-features-2.1: Features removed in 2.1 |
