Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
im-srj opened this issue Feb 16, 2023 · 0 comments

Comments

@im-srj
Copy link

im-srj commented Feb 16, 2023

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()'`
@im-srj im-srj closed this as completed Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant