Use a try/except for the new url import path to be backwards compatible with django before 1.6.