from django.http import HttpResponse
from channels import Group

def rfid_processor(request):
    """
      Consider authenticating your rfid_num producer to prevent
      someone messing with your api
    """
rfid_num = request.GET.get('rfid', '')
if rfid_num:
    Group('rfid-group').send({'text': rfid_num})
return HttpResponse(status=200)
return HttpResponse(status=500)
How to display an update that is pushed from the server to the webpage without a refresh?