Changed URL import to maintain compatibility with older Django