It takes me sometime to find the root cause. It seems in Django 1.7.x the django.db.backends.util has changed to django.db.backends.utils, which will break the injection of DatabaseStatTracker as util.CursorDebugWrapper.
A quick fix would be changing line 18 in sql.py to from django.db.backends import utils as util . I just create this issue to notify other users who had updated to Django 1.7.x and wish a formal fix could be released later.
It takes me sometime to find the root cause. It seems in Django 1.7.x the
django.db.backends.util
has changed todjango.db.backends.utils
, which will break the injection of DatabaseStatTracker asutil.CursorDebugWrapper
.A quick fix would be changing line 18 in
sql.py
tofrom django.db.backends import utils as util
. I just create this issue to notify other users who had updated to Django 1.7.x and wish a formal fix could be released later.