Answers for "django ajax without jquery"

1

django ajax without jquery

from django.http import JsonResponse

def get_random_number_json(request):
    random_no = random.randint(1,100)
    return JsonResponse({'random_no': random_no})
Posted by: Guest on July-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language