You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.5 KiB
51 lines
2.5 KiB
"""storage_poc URL Configuration
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/4.1/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import include, path
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
from django.contrib import admin
|
|
from django.urls import include, path
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
from tournaments.admin_utils import download_french_padel_rankings, debug_tools_page, test_player_details_apis, explore_fft_api_endpoints, get_player_license_info, bulk_license_lookup, search_player_by_name, enrich_rankings_with_licenses
|
|
|
|
urlpatterns = [
|
|
|
|
path("", include("tournaments.urls")),
|
|
path('shop/', include('shop.urls')),
|
|
path('mailing/', include('mailing.urls')),
|
|
# path("crm/", include("crm.urls")),
|
|
path('roads/', include("api.urls")),
|
|
path('kingdom/debug/', debug_tools_page, name='debug_tools'),
|
|
path('kingdom/debug/enrich-rankings-with-licenses/', enrich_rankings_with_licenses, name='enrich_rankings_with_licenses'),
|
|
path('kingdom/debug/search-player-by-name/', search_player_by_name, name='search_player_by_name'),
|
|
path('kingdom/debug/download-french-padel-rankings/', download_french_padel_rankings, name='download_french_padel_rankings'),
|
|
path('kingdom/debug/test-player-apis/', test_player_details_apis, name='test_player_apis'),
|
|
path('kingdom/debug/player-license-lookup/', get_player_license_info, name='player_license_lookup'),
|
|
path('kingdom/debug/bulk-license-lookup/', bulk_license_lookup, name='bulk_license_lookup'),
|
|
path('kingdom/debug/explore-api-endpoints/', explore_fft_api_endpoints, name='explore_api_endpoints'),
|
|
# path('kingdom/biz/', include('biz.admin_urls')),
|
|
path('kingdom/', admin.site.urls),
|
|
path('api-auth/', include('rest_framework.urls')),
|
|
path('dj-auth/', include('django.contrib.auth.urls')),
|
|
|
|
]
|
|
|
|
def email_users_view(request):
|
|
return render(request, 'admin/crm/email_users.html', {
|
|
'title': 'Email Users',
|
|
})
|
|
|
|
# Serve media files in development
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|