Skip to content

Commit

Permalink
Add on_bind argument to monkey-patched django.core.servers.basehttp.run
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jun 20, 2023
1 parent 5cf95b5 commit dd16238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omeroweb/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd16238

Please sign in to comment.