Dear Colleagues,  in particular Andrew ;)

I have a problem with making Channels serve static files. The issue 
concerns running `./manage.py runworker` which (according to the Getting 
Started with Channels guide) serves static files if Django run in DEBUG 
mode. Actually, I would like to disable serving static files completely 
because I always use Whitenoise in both development mode and in production. 
Providing `--nostatic` to `runserver` command does the trick, but only if 
workers run in-process.
In my setup I separate server from workers, so I run server as `./manage.py 
runserver --nostatic --noworker` and run workers separately with 
`./manage.py runworker --only-channels...`. Unfortunately in this case 
workers continue serving static files if they run in DEBUG mode, but the 
whole point of `--nostatic` is to disable serving static even in DEBUG mode 
(in production mode it is disabled by default AFAIR).

Is there any workaround?


-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/e6a3cbb8-363d-415b-be61-610d9cc50f58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to