From dd16238d7d74d2e431d3b13fd2bf9c5c8a60eede Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 20 Jun 2023 17:23:06 +0100 Subject: [PATCH] Add on_bind argument to monkey-patched django.core.servers.basehttp.run --- omeroweb/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omeroweb/manage.py b/omeroweb/manage.py index 3e080e5f2c..1dd7228afd 100644 --- a/omeroweb/manage.py +++ b/omeroweb/manage.py @@ -60,10 +60,10 @@ # Monkeypatch Django development web server to always run in single thread # even if --nothreading is not specified on command line def force_nothreading( - addr, port, wsgi_handler, ipv6=False, threading=False, server_cls=WSGIServer + addr, port, wsgi_handler, ipv6=False, threading=False, on_bind=None, server_cls=WSGIServer ): django_core_servers_basehttp_run( - addr, port, wsgi_handler, ipv6, False, server_cls + addr, port, wsgi_handler, ipv6, False, on_bind, server_cls ) import django.core.servers.basehttp