skip to Main Content

Redis – Django Channel 2 with Daphne on Heroku crash on starting

I created a django app using Channels 2 on heroku but it crash on starting with 503 error code. 2020-04-07T10:05:35.226253+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.mysite.com request_id=317bfbe6-9055-4957-9fbb-8190616c3964 fwd="" dyno= connect= service= status=503 bytes= protocol=https Procfile : release: python…

VIEW QUESTION

Redis – Interactions between HTTP and websocket connections in Django Channels

I have a frontend consumer that handles HTTP requests (webhooks) from django.views.decorators.csrf import csrf_exempt from channels.generic.http import AsyncHttpConsumer from django.http import JsonResponse import json import myapp.models import redis @csrf_exempt class frontEndConsumer(AsyncHttpConsumer): async def http_request(self, request): await self.channel_layer.group_add("link", self.channel_name) await self.channel_layer.group_send("link",…

VIEW QUESTION
Back To Top
Search