Ticket #16099: multithreaded.diff

File multithreaded.diff, 2.2 KB (added by Steve Lacy, 13 years ago)

Patch to enable multithreaded runserver, some small doc fixes as well.

  • README

    diff --git a/README b/README
    index 1c8df0f..eb29732 100644
    a b To contribute to Django:  
    4141To run Django's test suite:
    4242
    4343    * Follow the instructions in the "Unit tests" section of
    44       docs/internals/contributing.txt, published online at
    45       http://docs.djangoproject.com/en/dev/internals/contributing/#running-the-unit-tests
    46 
    47 
     44      docs/internals/contributing/writing-code/unit-tests.txt, published online at
     45      https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
     46 No newline at end of file
  • django/core/servers/basehttp.py

    diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
    index b51abcf..3e406b5 100644
    a b import traceback  
    1414import urllib
    1515from wsgiref import simple_server
    1616from wsgiref.util import FileWrapper   # for backwards compatibility
     17from SocketServer import ThreadingMixIn
    1718
    1819import django
    1920from django.core.exceptions import ImproperlyConfigured
    class ServerHandler(simple_server.ServerHandler, object):  
    6970        return ['\n'.join(traceback.format_exception(*sys.exc_info()))]
    7071
    7172
    72 class WSGIServer(simple_server.WSGIServer, object):
     73class WSGIServer(ThreadingMixIn, simple_server.WSGIServer, object):
    7374    """BaseHTTPServer that implements the Python WSGI protocol"""
    7475
    7576    def __init__(self, *args, **kwargs):
  • docs/internals/contributing/writing-code/submitting-patches.txt

    diff --git a/docs/internals/contributing/writing-code/submitting-patches.txt b/docs/internals/contributing/writing-code/submitting-patches.txt
    index 4eb74e1..51f8b34 100644
    a b and time availability), claim it by following these steps:  
    3636    * Log into your account, if you haven't already, by clicking "Login" in
    3737      the upper right of the ticket page.
    3838
    39     * Claim the ticket by clicking the radio button next to "Accept ticket"
     39    * Claim the ticket by clicking the radio button next to "reassign to..."
    4040      near the bottom of the page, then clicking "Submit changes."
    4141
    4242.. _Create an account: https://www.djangoproject.com/accounts/register/
Back to Top