Send endpoint commands through runserver

12 views
Skip to first unread message

U.G. Wilson

unread,
May 26, 2017, 6:15:39 PM5/26/17
to Django users
Is it possible to send endpoint commands through runserver?

In daphne I can do this:

daphne -v2 -e ssl:443:privateKey=key.pem:certKey=cert.pem main.asgi:channel_layer

but I have to have a worker in a separate process and run redis.

If I could do something like this:

python manage.py runserver -e ssl:443:privateKey=key.pem:certKey=cert.pem


I could use the asgiref.inmemory.ChannelLayer as well as have the server reload itself on code changes (which runworker doesn't do).

I know this functions from a technical standpoint because I've hacked the endpoint information by hand into my virtualenv copy of channels.management\runserver.py but while in the code didn't see an obvious way of doing so from the command line.

Andrew Godwin

unread,
May 26, 2017, 6:17:15 PM5/26/17
to django...@googlegroups.com
I've already answered the issue you opened on this topic: https://github.com/django/channels/issues/646

Andrew

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/7b3d1131-dbeb-4a4d-a632-292fd37ba3fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages