diff --git a/padelclub_backend/urls.py b/padelclub_backend/urls.py index e6b1a63..eae8bf9 100644 --- a/padelclub_backend/urls.py +++ b/padelclub_backend/urls.py @@ -15,10 +15,11 @@ Including another URLconf """ from posixpath import basename from django.contrib import admin -from django.urls import include, path +from django.urls import include, path, re_path from rest_framework import routers from tournaments import views from rest_framework.authtoken.views import obtain_auth_token +from django.views.generic import TemplateView router = routers.DefaultRouter() router.register(r'users', views.UserViewSet) @@ -34,6 +35,14 @@ router.register(r'player-registrations', views.PlayerRegistrationViewSet) # router.register(r'exp-tournaments', views.ExpandedTournamentViewSet, basename='tournaments-json') urlpatterns = [ + + re_path(r'^password-reset/$', + TemplateView.as_view(template_name="password_reset.html"), + name='password-reset'), + re_path(r'^password-reset/confirm/$', + TemplateView.as_view(template_name="password_reset_confirm.html"), + name='password-reset-confirm'), + path('api/', include(router.urls)), path("", include("tournaments.urls")), path('admin/', admin.site.urls),