Use custom import

Because 2.6 and 2.7 have different module loading and various versions of django do as well - it is necessary to have this custom import.