1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #21221 -- Deprecated staticfiles and admin_static template tag libraries.

This commit is contained in:
Jon Dufresne
2018-01-21 13:38:52 -08:00
committed by Tim Graham
parent f0f383b635
commit 7d607127e3
9 changed files with 109 additions and 23 deletions

View File

@@ -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.

View File

@@ -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