Helper methods for working with URL's in django