Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.4k stars 663 forks source link

TEMPLATE DOES NOT EXIST #641

Open adupatil opened 3 years ago

adupatil commented 3 years ago

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!