Fixed #22218 -- Deprecated django.conf.urls.patterns.

(work in progress)

https://code.djangoproject.com/ticket/22218