make url compliant with django 1.6