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

Fixed #24022 -- Deprecated the ssi tag.

This commit is contained in:
Preston Timmons
2015-01-05 14:43:15 -06:00
committed by Tim Graham
parent a9aec1154e
commit de9ebdd39c
7 changed files with 33 additions and 6 deletions

View File

@@ -1088,6 +1088,11 @@ def ssi(parser, token):
{% ssi "/home/html/ljworld.com/includes/right_generic.html" parsed %}
"""
warnings.warn(
"The {% ssi %} tag is deprecated. Use the {% include %} tag instead.",
RemovedInDjango20Warning,
)
bits = token.split_contents()
parsed = False
if len(bits) not in (2, 3):