Use new imports for url and patterns functions

This means minimum version of django to be 1.4