mirror of
https://github.com/scratchfoundation/gargoyle.git
synced 2025-06-13 11:10:20 -04:00
make it backwards compatible
This commit is contained in:
parent
0aa6d64527
commit
460c21673e
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue