I'm upgrading one of my projects to Django 1.8.3 and one of the few challenges is that my custom registration templates are no longer being access by Django.
Base on this: https://stackoverflow.com/a/19226149/3390630 I have my custom registration files inside my appname/templates/registration
folder.
As Django made some major changes to the way the templates are now being accessed, Django 1.8 is no longer looking for my custom registration files and I get this error:
NoReverseMatch at /resetpassword/
Reverse for 'password_reset_done' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
I tried to add the following loaders to the TEMPLATES
settings but no luck.
'loaders': [
'django.template.loaders.app_directories.Loader',
'django.template.loaders.filesystem.Loader',
]
I'm also using custom urls
for login, logout, password reset
etc.
My URLs
...
url(r'^resetpassword/$', 'django.contrib.auth.views.password_reset', name='password_reset'),
url(r'^resetpassword/passwordsent/$', 'django.contrib.auth.views.password_reset_done', name='password_reset_done'),
url(r'^reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', name='password_reset_confirm'),
url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete', name='password_reset_complete'),
...
Any suggestions how to make Django look inside my custom folder again?