Controlling a robot from a Django web app - how to connect the robot to the web app to allow commands to be published to it?

I am trying to build a web app using the python framework Django and I am looking for help regarding WebSocket support for Django. I have done research and roslibjs seems to be the most common library for this. Is there an equivalent library for python. Any other suggestions to controlling the robot from the browser would be appreciated too.
Thank you.

Controlling a robot from the web is usually done from the frontend (CSS, HTML and JavaScript); and we have a course for that.

Once you figure that out, you can also figure out how to bring Django into the picture.