Search code examples
djangodjango-rest-frameworkdjango-channels

Make Django REST framework and Django Channels play nicely


I want to make the Django REST Framework work with web sockets and came across Django Channels. Can I build Channels on top of the REST Framework?

I read here that it is WIP, however I was wondering if there is an easy 'light' way to tie the two together. Any advice is appreciated, I'm still rather new to Django.


Solution

  • Depends on what you want to do,If you are looking for creating API's endpoint in realtime , right now its not possible.

    Incase serializing messages on top of Django ,there is a project https://github.com/linuxlewis/channels-api .