mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Fix RemovedInDjango19Warning (django.utils.importlib)
This commit is contained in:
parent
cfdc330d25
commit
87bb09c66e
1 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,10 @@ import logging
|
|||
|
||||
from django import template
|
||||
from django.template import Node, TemplateSyntaxError
|
||||
from django.utils.importlib import import_module
|
||||
try:
|
||||
from importlib import import_module
|
||||
except ImportError: # Python 2.6
|
||||
from django.utils.importlib import import_module
|
||||
from analytical.utils import AnalyticalException
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue