Update urls.py

added re_path for django 4.0
This commit is contained in:
shashi 2022-05-04 21:32:20 +05:30 committed by GitHub
parent 1e760cbef9
commit 01d9973825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
from django.views.generic import TemplateView from django.views.generic import TemplateView
from django.urls import path from django.urls import path, re_path
from .views import RegisterView, VerifyEmailView 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 # If you don't want to use API on that step, then just use ConfirmEmailView
# view from: # view from:
# django-allauth https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py # django-allauth https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py
path('account-confirm-email/(?P<key>[-:\w]+)/', TemplateView.as_view(), re_path('account-confirm-email/(?P<key>[-:\w]+)/', TemplateView.as_view(),
name='account_confirm_email'), name='account_confirm_email'),
] ]