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.41k stars 661 forks source link

ImproperlyConfigured at /api/v1/auth/registration/account-email-verification-sent/ #668

Closed im-srj closed 1 year ago

im-srj commented 1 year ago

I'm getting this error when trying to signup after updating dj-rest-auth package to 3.0.0 from 1.1.0.

main urls.py

from allauth.account.views import confirm_email
from dj_rest_auth.registration.views import VerifyEmailView
from dj_rest_auth.views import PasswordResetConfirmView
from django.urls import include, path, re_path][1]][1]

path("api/v1/auth/", include("dj_rest_auth.urls")),
path(
    "api/v1/auth/registration/", include("dj_rest_auth.registration.urls")
),
path("api/v1/auth/registration/verify-email/", VerifyEmailView.as_view()),
path(
    "api/v1/auth/password/reset/confirm/<slug:uidb64>/<slug:token>/",
    PasswordResetConfirmView.as_view(),
    name="password_reset_confirm",
),
re_path(
    r"^api/v1/auth/accounts-rest/registration/account-confirm-email/(?P<key>.+)/$",
    confirm_email,
    name="account_confirm_email",
),
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()'`