def patterns(prefix, *args):
    warnings.warn(
        'django.conf.urls.patterns() is deprecated and will be removed in Django 2.0. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.'
        , RemovedInDjango20Warning, stacklevel=2)
Сбросить пароль в Джанго