Search code examples
djangopostgresqldjango-channels

Django channels with postgreSQL


I'm working on a project and I need to use Django-channels in it.

I followed this tutorial step by step but it used Redis to make layer (which is not supported in Windows OS) so is it possible to use PostgreSQL instead of Redis for stack data?

sorry for my bad grammar! English is not my native language!


Solution

  • I don't think you can do that with Postgresql. I would rather suggest you to install Docker for Windows and then running a redis instance. You would run a command similar to this after installing docker properly.

    docker run -p 6379:6379 redis:latest
    

    This will run a redis instance inside docker which you will be able to access through the 6379 port.