From ff658a59c17205db48aa98b53fc3bb24e5d68f0a Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Wed, 17 Aug 2016 07:48:59 +0200 Subject: [PATCH] The start command uses only one worker (#2271) Fixes #2198 after https://github.com/andrewgodwin/channels/pull/298 is part of the next channels release --- openslides/__main__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openslides/__main__.py b/openslides/__main__.py index 44ef8d714..5a5cb5bac 100644 --- a/openslides/__main__.py +++ b/openslides/__main__.py @@ -184,14 +184,16 @@ def start(args): start_browser('http://%s:%s' % (args.host, args.port)) # Start the webserver - # Tell django not to reload. OpenSlides uses the reload method from tornado - # Use insecure to serve static files, even when DEBUG is False. + # Use flag --noreload to tell Django not to reload the server. + # Use flag --insecure to serve static files even if DEBUG is False. + # Use flag --nothreading to tell Django Channels to run in single thread mode. execute_from_command_line([ 'manage.py', 'runserver', '{}:{}'.format(args.host, args.port), '--noreload', - '--insecure']) + '--insecure', + '--nothreading']) def createsettings(args):