Skip to content

Commit 6a49df9

Browse files
committed
Tweaks to waitress command
1 parent 2a70cd4 commit 6a49df9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

django_webserver/management/commands/waitress.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import absolute_import
22

3-
from waitress.runner import run
3+
import waitress.runner
44

55
from ...base_command import WebserverCommand
66
from ...utils import wsgi_app_name
@@ -14,5 +14,8 @@ class Command(WebserverCommand):
1414

1515
help = "Start waitress server"
1616

17+
def prep_server_args(self, argv):
18+
return argv[1:] + [wsgi_app_name()]
19+
1720
def start_server(self, *args):
18-
run(argv=args[1:] + (wsgi_app_name(),))
21+
waitress.runner.run(argv=args)

0 commit comments

Comments
 (0)