dcramer / django-devserver

A drop-in replacement for Django's runserver.
BSD 3-Clause "New" or "Revised" License
1.27k stars 158 forks source link

DatabaseStatTracker in sql.py is not working #107

Closed lenciel closed 9 years ago

lenciel commented 9 years ago

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.

coagulant commented 9 years ago

I've submitted PR #105 with a fix earlier

lenciel commented 9 years ago

Great, thanks a lot.