make url compatible with django 1.6