def trysock(request):
    print('In tryshok')
comments = Comment.objects.all()
dic = {'name': 'User', 'form': CommentForm(), 'comments': comments}
return render(request, 'index.html', dic)

@csrf_exempt
def create_comment(request):
    print('Django<---Node')
Comment.objects.create(user=request.POST['user'], comment=request.POST[
    'comment'])
response = JsonResponse({'user': request.POST['user'], 'comment': request.
    POST['comment']})
print(response.content)
return HttpResponse(response.content)
Does Django have a way to open a HTTP long poll connection?