Removes hard-coded urls from Django < 1.4.