Skip to content

Commit 6ab29ee

Browse files
support for Django>=1.9
1 parent bf41c76 commit 6ab29ee

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dajaxice/core/Dajaxice.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import logging
22

3-
from django.utils.importlib import import_module
3+
try:
4+
from django.utils.importlib import import_module
5+
except ImportError:
6+
from importlib import import_module
47

58
log = logging.getLogger('dajaxice')
69

dajaxice/finders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def dajaxice_core_js(self):
6767

6868
dajaxice_autodiscover()
6969

70-
c = Context({'dajaxice_config': dajaxice_config})
70+
c = {'dajaxice_config': dajaxice_config}
7171
return get_template(os.path.join('dajaxice', 'dajaxice.core.js')).render(c)
7272

7373

dajaxice/templates/dajaxice/dajaxice.core.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% load url from future %}
21
var Dajaxice = {
32

43
{% with module=dajaxice_config.modules top='top' %}

0 commit comments

Comments
 (0)