From 01d997382532529549d4ebf9c659f18fda034c16 Mon Sep 17 00:00:00 2001 From: shashi <96287842+mayavy@users.noreply.github.com> Date: Wed, 4 May 2022 21:32:20 +0530 Subject: [PATCH] Update urls.py added re_path for django 4.0 --- rest_auth/registration/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_auth/registration/urls.py b/rest_auth/registration/urls.py index 35037a6..2fef5d7 100644 --- a/rest_auth/registration/urls.py +++ b/rest_auth/registration/urls.py @@ -1,5 +1,5 @@ from django.views.generic import TemplateView -from django.urls import path +from django.urls import path, re_path from .views import RegisterView, VerifyEmailView @@ -18,6 +18,6 @@ urlpatterns = [ # If you don't want to use API on that step, then just use ConfirmEmailView # view from: # django-allauth https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py - path('account-confirm-email/(?P[-:\w]+)/', TemplateView.as_view(), + re_path('account-confirm-email/(?P[-:\w]+)/', TemplateView.as_view(), name='account_confirm_email'), ]