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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user