Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-registration password reset custom template not loading

I'm using django-registration for registering users, however when I want to use my own template for password reset I get the admin template and not the template I created. My template is in myapp/templates/registration/password_reset_form.html and my template loaders are properly set:

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
    )

What could I be missing?

I'm using Django 1.4

like image 493
ip. Avatar asked Nov 27 '12 23:11

ip.


1 Answers

Could it be that django.contrib.auth comes before myapp in your INSTALLED_APPS? That would mean that django finds the original template first and uses this one. More on this in the docs: https://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types

like image 98
ptrck Avatar answered Sep 28 '22 06:09

ptrck