django serialize a get object is not iterable

Solutions on MaxInterview for django serialize a get object is not iterable 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
  
showing results for - "django serialize a get object is not iterable"
Karl
26 Aug 2017
1def get_AJAX(request, id):
2    data = serializers.serialize("json", [Template.objects.get(pk=id)])
3    return HttpResponse(data)
4
similar questions