Tivix/django-rest-auth

TEMPLATE DOES NOT EXIST

adupatil opened this issue · 0 comments

I have overridden Django-rest-auth PasswordResetSerializer

code:
class CustomPasswordResetSerializer(PasswordResetSerializer):
def get_email_options(self):
return {
'email_template_name': 'password_reset_email.html'
}

settings.py
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, '../frontend','../users/templates/users/registration')],
'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',
],
},
},
]

REST_AUTH_SERIALIZERS= {
'PASSWORD_RESET_SERIALIZER': 'users.serializers.CustomPasswordResetSerializer',
}
Even after providing a path for the custom template it shows template not found

please help!