issue while switching to django 1.7