From 7d607127e39792aa45b6abc2619b99fc55bcc672 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 21 Jan 2018 13:38:52 -0800 Subject: Refs #21221 -- Deprecated staticfiles and admin_static template tag libraries. --- docs/internals/deprecation.txt | 5 +++++ docs/releases/2.1.txt | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'docs') 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 ` 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 -- cgit v1.3