diff --git a/django/core/template/defaulttags.py b/django/core/template/defaulttags.py index d70d2a6933..89b35c2513 100644 --- a/django/core/template/defaulttags.py +++ b/django/core/template/defaulttags.py @@ -360,6 +360,10 @@ def cycle(parser, token): raise TemplateSyntaxError("Invalid arguments to 'cycle': %s" % args) cycle = register.tag(cycle) +def debug(parser, token): + return DebugNode() +debug = register.tag(debug) + #@register.tag(name="filter") def do_filter(parser, token): """