I am working on rest password via custum templates in django,but custom template not loading it is loading django's default template every time i load the /password_reset/ url.
I am using the url
url('^', include('django.contrib.auth.urls')),
i have a registration folder in templates and using this link to work https://simpleisbetterthancomplex.com/tutorial/2016/09/19/how-to-create-password-reset-view.html
and the template folder is:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
"cms.utils.context_processors.permission_based_hidding_of_sidebar",
],
'libraries':{
'template_tag': 'cms.templatetags.template_tag',
'template_tag_time': 'cms.templatetags.tags',
}
},
},
]
install apps in settings:-
INSTALLED_APPS = [
'cms',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
'django_csv_exports',
'django.contrib.auth',
'django.contrib.admin',
]
password_reset
template files in your directory? – Raja Simon