#πŸ”’ Users may not be connecting to the same websocket - django channels

20 messages Β· Page 1 of 1 (latest)

ivory sailBOT
#

@coral atlas

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sinful birch
#

How are you running your webserver?

#

FYI paste supports multiple files so you don't have to mash all three of your files into one

#

You also cut off your imports

#

Paste the shell command

#

To run your server you have to type some shell command

#

Hmm

#

Have you got a new paste with the files separately and showing imports?

#

Oh you do brilliant I see it now

#

What channel layer are you using?

#

I don't think that works with runserver

#

You need to use the Redis one or run your server with Uvicorn/hypercorn

#

Oh yeah I forgot about Daphne

#
#

You'll probably want to switch to the Redis channel layer anyways

#

What's the output of python manage.py runserver?

#

Oh hmmm that's supposed to be working then

#

You might need to ask on the Django discord

ivory sailBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.