I've just committed some changes to django.db importability. Could you try to move the import at the top to see if it works now?