make it backwards compatible

This commit is contained in:
Andrew Chen 2015-04-29 11:09:45 -07:00
parent 0aa6d64527
commit 460c21673e

View file

@ -6,7 +6,10 @@ gargoyle.templatetags.gargoyle_helpers
:license: Apache License 2.0, see LICENSE for more details.
"""
from django.template import base as template_base
try:
from django.template import base as template_base
except ImportError:
from django import template as template_base
register = template_base.Library()