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',
),
You shouldn't need to do anything more than:
add this to your URL conf:
url(r'^accounts/password_reset/$', 'django.contrib.auth.views.password_reset', name='admin_password_reset'),
url(r'^accounts/', include('django.contrib.auth.urls')),` # or use "admin" or whatever as start of path instead of "accounts")
grappelli
to INSTALLED_APPS
.No need to dig into specific template paths. This works for me anyway.