Fix url import for Django >= 1.4.

Not sure how this has not been fixed already.