diff --git a/django/core/defaulttags.py b/django/core/defaulttags.py index 738a7d34b5..e5620f7743 100644 --- a/django/core/defaulttags.py +++ b/django/core/defaulttags.py @@ -225,7 +225,9 @@ class LoadNode(template.Node): self.taglib = taglib def load_taglib(taglib): - return __import__("django.templatetags.%s" % taglib.split('.')[-1], '', '', ['']) + mod = __import__("django.templatetags.%s" % taglib.split('.')[-1], '', '', ['']) + reload(mod) + return mod load_taglib = staticmethod(load_taglib) def render(self, context):