djangodjango-grappelli

How to use Grappelli templates


This may seem like a stupid question, but how does one use the included Grappelli's templates?

For example, I would like to use the password_reset.html and associated templates (password_reset_email.html, etc). What is the path to them? Also, are the routes such as password_reset_done included or do I have to implement admin specific routes to use the included templates (I have already done it for the part of the application that is not admin related).

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

Solution

  • You shouldn't need to do anything more than:

    No need to dig into specific template paths. This works for me anyway.