added import fix for django 1.4 exceptions