python 2.6 compatibility, use of import_module exists on 2.7 and later so we use django version