|
|
|
|
@ -36,19 +36,17 @@ router.register(r'player-registrations', views.PlayerRegistrationViewSet) |
|
|
|
|
|
|
|
|
|
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), |
|
|
|
|
path('api-auth/', include('rest_framework.urls')), |
|
|
|
|
path('api/dj-rest-auth/', include('dj_rest_auth.urls')), |
|
|
|
|
|
|
|
|
|
path('api/plus/api-token-auth/', obtain_auth_token, name='api_token_auth'), |
|
|
|
|
path("api/plus/user-by-token/", views.user_by_token, name="user_by_token"), |
|
|
|
|
path("api/plus/change-password/", views.ChangePasswordView.as_view(), name="change_password"), |
|
|
|
|
|
|
|
|
|
# forgotten password |
|
|
|
|
path('api/dj-rest-auth/', include('dj_rest_auth.urls')), |
|
|
|
|
path('dj-auth/', include('django.contrib.auth.urls')), |
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|