#24398: Built in webserver not reloading Python files upon requests
----------------------------------+--------------------------------------
Reporter: hyperknot | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution:
Keywords: server runserver | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Comment (by hyperknot):
I'm sure there'll be other developers with OS X 10.9.5 and Python 2.7.9.
Difference with '''--noreload''':
No zombie process, but the whole server waits after Ctrl+C for quite a
while. Like 15 seconds. It'd be interesting to know what is it waiting
for. Also, no "Exception KeyboardInterrupt" this way.
'''--nothreading''':
- This fixed all the problems!
- Behaves very differently then normal mode: if I save a file, which was
already loaded, the server is triggered into an auto reload, simply on
saving the file
- In the threading mode, the auto reload was not triggered like this.
'''--nothreading --noreload''':
Upon Ctrl + C, I couldn't quit the server, but received this:
{{{
^C----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 50457)
Traceback (most recent call last):
File
"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
line 295, in _handle_request_noblock
self.process_request(request, client_address)
File
"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
line 321, in process_request
self.finish_request(request, client_address)
File
"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Users/user/Dropbox/sync/dev/django/tango/venv/lib/python2.7/site-
packages/django/core/servers/basehttp.py", line 129, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File
"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
line 655, in __init__
self.handle()
File
"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py",
line 116, in handle
self.raw_requestline = self.rfile.readline(65537)
File
"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
line 476, in readline
data = self._sock.recv(self._rbufsize)
KeyboardInterrupt
----------------------------------------
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24398#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.16d69722109f09eb3f341c5d95b2871e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.