Backward compatibility for Django < 1.4.5

Added a few backward compatibilty imports for Django < 1.4.5