I'm trying to implement a custom management command into my app. its purpose would be to check the database for a poll which fits time parameters and update clients via channels.
I want to get a list of the clients in a group, then decide whether or not to send them new information based on their session data I have been exploring this in the shell and im wondering why my client doesn't receive a message when i use the following code: from django.conf import settings from django.utils.module_loading import import_string config = getattr(settings, "CHANNEL_LAYERS", {}) backend_class = import_string(config['default']['BACKEND']) channel_layer = backend_class(config['default'].get("CONFIG", {})) channel = channel_layer.group_channels('poll')[0] channel_layer.send(channel, {"text": "hello world!"}) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/643c74f3-6703-4fc4-bf1e-4fa2c327ef1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.