Ticket #18019: 18019-1.diff

File 18019-1.diff, 909 bytes (added by claudep, 3 years ago)

use_threading=False for testserver usage

  • django/core/management/commands/testserver.py

    diff --git a/django/core/management/commands/testserver.py b/django/core/management/commands/testserver.py
    index 2e0d8e4..039f714 100644
    a b class Command(BaseCommand): 
    3535        # a strange error -- it causes this handle() method to be called
    3636        # multiple times.
    3737        shutdown_message = '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.' % db_name
    38         call_command('runserver', addrport=addrport, shutdown_message=shutdown_message, use_reloader=False, use_ipv6=options['use_ipv6'])
     38        call_command('runserver',
     39            addrport=addrport,
     40            shutdown_message=shutdown_message,
     41            use_reloader=False,
     42            use_ipv6=options['use_ipv6'],
     43            use_threading=False
     44        )
Back to Top