diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index e491a25cbb..ebd8a1a9f7 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -211,7 +211,7 @@ class IncludeNode(Node): if context.template.engine.debug: raise template_name = getattr(context, 'template_name', None) or 'unknown' - logger.warn( + logger.warning( "Exception raised while rendering {%% include %%} for " "template '%s'. Empty string rendered instead.", template_name,