How to use Grappelli templates

48 views
Skip to first unread message

deve...@codeblur.com

unread,
Jan 28, 2016, 2:48:38 AM1/28/16
to Django Grappelli
Hello,


I would like to use the password_reset.html and associated templates (password_reset_email.html, etc). What is the path to them?

I've tried:

grappelli/admin/registration/password_reset.html
admin/registration/password_reset.html
registration/password_reset.html

in


                  url(
                      r'^admin/password_reset/$',
                      'django.contrib.auth.views.password_reset',
                      {
                          'template_name': 'admin/registration/password_reset.html',
                          'email_template_name': 'admin/registration/password_reset_email.html',
                          'post_reset_redirect': 'authenticate:password_reset_done',
                      },
                      name='admin_password_reset',
                  ),

I did not find the information in the documentation or via Google.

Could someone give me some pointers?

Thanks!

Best regards,

Jamal

patrick kranzlmueller

unread,
Jan 28, 2016, 4:55:25 AM1/28/16
to django-g...@googlegroups.com
the answer given with stackoverflow is correct (and tested). if you add the two mentioned URLs, you automatically get the "forgot password" link with the admin.

besides, the path to the registration templates is:
registration/password_reset_done.html

best,
patrick



--

---
You received this message because you are subscribed to the Google Groups "Django Grappelli" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-grappel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages