fixed build issues related to the django 1.7