fix urls for django >= 1.5

django 1.5 compatibility
but removes compatibility for django before 1.3