initialize django only for version 1.7 and above