Url import for backward compatibility

I do some small changes for better backward compatibility (it require many other changes for really compatibility) with django<1.4