Skip to content

Commit 57bb3d6

Browse files
committed
Support new uvicorn interface
Kludex/uvicorn#325
1 parent dc08f09 commit 57bb3d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django_webserver/management/commands/uvicorn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Command(WebserverCommand):
1515
help = "Start uvicorn server"
1616

1717
def prep_server_args(self, argv):
18-
return argv[2:] + [wsgi_app_name(), "--wsgi"]
18+
return argv[2:] + [wsgi_app_name(), "--interface=wsgi"]
1919

2020
def start_server(self, *args):
2121
uvicorn.main.main(args)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ test = [
3232
]
3333
pyuwsgi = ["pyuwsgi"]
3434
gunicorn = ["gunicorn"]
35-
uvicorn = ["uvicorn; python_version >= '3.5'"]
35+
uvicorn = ["uvicorn>0.6; python_version >= '3.5'"]
3636
waitress = ["waitress"]

0 commit comments

Comments
 (0)