Ticket #16099: multithreaded-2.diff
File multithreaded-2.diff, 791 bytes (added by , 13 years ago) |
---|
-
django/core/servers/basehttp.py
14 14 import urllib 15 15 from wsgiref import simple_server 16 16 from wsgiref.util import FileWrapper # for backwards compatibility 17 from SocketServer import ThreadingMixIn 17 18 18 19 import django 19 20 from django.core.exceptions import ImproperlyConfigured … … 69 70 return ['\n'.join(traceback.format_exception(*sys.exc_info()))] 70 71 71 72 72 class WSGIServer( simple_server.WSGIServer, object):73 class WSGIServer(ThreadingMixIn, simple_server.WSGIServer, object): 73 74 """BaseHTTPServer that implements the Python WSGI protocol""" 74 75 75 76 def __init__(self, *args, **kwargs):