|
|
|
@ -498,15 +498,26 @@ def club_broadcast_auto(request, broadcast_code): |
|
|
|
def download(request): |
|
|
|
def download(request): |
|
|
|
return render(request, 'tournaments/download.html') |
|
|
|
return render(request, 'tournaments/download.html') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import jwt |
|
|
|
|
|
|
|
import cryptography |
|
|
|
|
|
|
|
import httpx |
|
|
|
|
|
|
|
from django.http import JsonResponse |
|
|
|
|
|
|
|
|
|
|
|
def test_apns(request): |
|
|
|
def test_apns(request): |
|
|
|
|
|
|
|
|
|
|
|
user = CustomUser.objects.filter(username='laurent').first() |
|
|
|
return JsonResponse({ |
|
|
|
for device_token in user.devicetoken_set.all(): |
|
|
|
"jwt_version": jwt.__version__, |
|
|
|
asyncio.run(send_push_notification(device_token.value, 'LOL?!')) |
|
|
|
"cryptography_version": cryptography.__version__, |
|
|
|
|
|
|
|
"httpx_version": httpx.__version__ |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# user = CustomUser.objects.filter(username='laurent').first() |
|
|
|
|
|
|
|
# for device_token in user.devicetoken_set.all(): |
|
|
|
|
|
|
|
# asyncio.run(send_push_notification(device_token.value, 'LOL?!')) |
|
|
|
|
|
|
|
|
|
|
|
# token = DeviceToken.objects.first() |
|
|
|
# # token = DeviceToken.objects.first() |
|
|
|
|
|
|
|
|
|
|
|
return HttpResponse('OK!') |
|
|
|
# return HttpResponse('OK!') |
|
|
|
|
|
|
|
|
|
|
|
def test_websocket(request): |
|
|
|
def test_websocket(request): |
|
|
|
return render(request, 'tournaments/test_websocket.html') |
|
|
|
return render(request, 'tournaments/test_websocket.html') |
|
|
|
|