Re: django channels in the shell

2017-02-23 Thread chris rose
thank you. i completely overlooked that function -- 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 grou

Re: django channels in the shell

2017-02-22 Thread Andrew Godwin
I would recommend using the channel layer object directly instead in future: from channels.asgi import get_channel_layer channel_layer = get_channel_layer() That will make sure all settings are applied the same. Andrew On Wed, Feb 22, 2017 at 8:19 PM, chris rose wrote: > solved it.. I had to

Re: django channels in the shell

2017-02-22 Thread chris rose
solved it.. I had to explicitly add the hosts parameter from django.conf import settings > from django.utils.module_loading import import_string config = getattr(settings, "CHANNEL_LAYERS", {}) > hosts = config['default']['CONFIG']['hosts'] backend_class = import_string(config['default']['BACKE

django channels in the shell

2017-02-19 Thread chris rose
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 the