mirror of
				https://github.com/Tivix/django-rest-auth.git
				synced 2025-10-30 23:37:32 +03:00 
			
		
		
		
	Update urls.py
added re_path for django 4.0
This commit is contained in:
		
							parent
							
								
									1e760cbef9
								
							
						
					
					
						commit
						01d9973825
					
				|  | @ -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<key>[-:\w]+)/', TemplateView.as_view(), | ||||
|     re_path('account-confirm-email/(?P<key>[-:\w]+)/', TemplateView.as_view(), | ||||
|          name='account_confirm_email'), | ||||
| ] | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user