django ajax without jquery

Solutions on MaxInterview for django ajax without jquery by the best coders in the world

showing results for - "django ajax without jquery"
Evann
04 Feb 2020
1from django.http import JsonResponse
2
3def get_random_number_json(request):
4    random_no = random.randint(1,100)
5    return JsonResponse({'random_no': random_no})