use native django reset email message
authorFrédéric Péters <fpeters@0d.be>
Fri, 3 Jan 2020 15:32:21 +0000 (16:32 +0100)
committerFrédéric Péters <fpeters@0d.be>
Fri, 3 Jan 2020 15:32:35 +0000 (16:32 +0100)
somehow django-registration is looking for a .txt version that doesn't
exist.

panikdb/urls.py

index 089f63f..6457da8 100644 (file)
@@ -3,7 +3,7 @@ from django.conf import settings
 from django.views.generic import RedirectView
 from django.core.urlresolvers import reverse_lazy
 from django.contrib.auth.decorators import login_required
-from django.contrib.auth.views import logout_then_login
+from django.contrib.auth import views as auth_views
 
 from django.contrib import admin
 
@@ -68,7 +68,11 @@ urlpatterns = [
     url(r'^cms/pages/topik/(?P<pk>\w+)/edit-topik$', panikombo.views.topik_edit,
         name='edit-topik'),
 
-    url(r'^accounts/logout/', logout_then_login, name='logout'),
+    url(r'^accounts/logout/', auth_views.logout_then_login, name='logout'),
+    url(r'^accounts/password/reset/$',
+        auth_views.password_reset,
+        {'post_reset_redirect': 'auth_password_reset_done',
+         'email_template_name': 'registration/password_reset_email.html'}),
     url(r'^accounts/', include('registration.backends.default.urls')),
 
     url(r'^combok/soundfiles/', panikombo.views.soundfiles),