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

https://code.djangoproject.com/ticket/22218