Together with my wife, we run a small digital agency. We use Django as a primary web development framework and love simplicity.
In this post, I will guide you on how to enable WebSockets in your Django application without installing third-party apps.
Django has introduced the ASGI interface since version 3.0 and async views in 3.1. Our solution will be based on async views. In this tutorial, we will use Python 3.7 and Django 3.1.
ASGI is a replacement protocol to good-old WSGI protocol that served us for years and it will become a de-facto standard in Python web frameworks…