Deprecate url patterns

The patterns function will be deprecated as of Django 1.8 and removed in 2.0.

See https://github.com/django/django/commit/d73d0e071c1b4c86d57994a0ab55a74cfe80cdf5