django ajax without jquery

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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})