Skip to content

Commit 5b17017

Browse files
committed
Removed regex from path url to avoid djang deprecation and migration warnings.
1 parent 3fd2bdd commit 5b17017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/userauth/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
path('', include('dj_rest_auth.urls')),
1717
path('', include(router.urls)),
1818
path('registration/', include('dj_rest_auth.registration.urls'), name='registration'),
19-
path('registration/verify-email/$', views.CustomVerifyEmailView.as_view(), name='account_email_verification_sent'),
20-
path('registration/verify-email/(?P<key>[-:\w]+)/$', views.CustomVerifyEmailView.as_view(), name='account_confirm_email'),
19+
path('registration/verify-email/', views.CustomVerifyEmailView.as_view(), name='account_email_verification_sent'),
20+
path('registration/verify-email/<key>', views.CustomVerifyEmailView.as_view(), name='account_confirm_email'),
2121
path('password/reset/', PasswordResetView.as_view(), name='password_reset'),
2222
path('password/reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
2323
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),

0 commit comments

Comments
 (0)