import fix and update to django 1.6.2