This project has a quirk that we haven't seen in other Django projects in that whenever the client navigates away while a page is loading it prints an error message. This is low priority, because it doesn't seem to hurt anything but it spams the terminal that may have other useful information. Here's an example:
System check identified no issues (0 silenced).
February 12, 2015 - 12:45:42
Django version 1.7.1, using settings 'ADSM.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[12/Feb/2015 12:45:46] "GET /results/DailyByProductionType/ HTTP/1.1" 200 276134
[12/Feb/2015 12:45:46] "GET /static/js/jquery-2.1.3.min.js HTTP/1.1" 200 84320
[12/Feb/2015 12:45:46] "GET /static/js/bootstrap.min.js HTTP/1.1" 200 29097
[12/Feb/2015 12:45:46] "GET /static/js/results-status.js HTTP/1.1" 200 1999
[12/Feb/2015 12:45:46] "GET /static/icons/new.png HTTP/1.1" 200 337
[12/Feb/2015 12:45:46] "GET /static/css/adsm.css HTTP/1.1" 200 12294
[12/Feb/2015 12:45:46] "GET /static/icons/open.png HTTP/1.1" 200 254
[12/Feb/2015 12:45:46] "GET /static/js/adsm.js HTTP/1.1" 200 16836
[12/Feb/2015 12:45:46] "GET /static/icons/save.png HTTP/1.1" 200 357
[12/Feb/2015 12:45:46] "GET /static/fonts/source-sans-pro/source-sans-pro.css HTTP/1.1" 200 5758
[12/Feb/2015 12:45:46] "GET /static/js/bootstrap-dialog.js HTTP/1.1" 200 28840
[12/Feb/2015 12:45:46] "GET / HTTP/1.1" 200 500
[12/Feb/2015 12:45:46] "GET /static/css/bootstrap.css HTTP/1.1" 200 56028
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 279, in write
self._write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 453, in _write
self.stdout.write(data)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 60982)
File "C:\Users\Josiah\Py341\lib\socket.py", line 391, in write
return self._sock.send(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
[12/Feb/2015 12:45:46] "GET /static/css/bootstrap.css HTTP/1.1" 500 59
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 279, in write
self._write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 453, in _write
self.stdout.write(data)
File "C:\Users\Josiah\Py341\lib\socket.py", line 391, in write
return self._sock.send(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 141, in run
self.handle_error()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 368, in handle_error
self.finish_response()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 331, in send_headers
if not self.origin_server or self.client_is_modern():
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 344, in client_is_modern
return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\socketserver.py", line 609, in process_request_thread
self.finish_request(request, client_address)
File "C:\Users\Josiah\Py341\lib\socketserver.py", line 344, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\Josiah\VirtualPy341\lib\site-packages\django\core\servers\basehttp.py", line 129, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File "C:\Users\Josiah\Py341\lib\socketserver.py", line 665, in __init__
self.handle()
File "C:\Users\Josiah\Py341\lib\wsgiref\simple_server.py", line 126, in handle
handler.run(self.server.get_app())
Sample Scenario with Outputs
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 144, in run
self.close()
File "C:\Users\Josiah\Py341\lib\wsgiref\simple_server.py", line 35, in close
self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'
Checking Scenario version
----------------------------------------
[12/Feb/2015 12:45:47] "GET /static/splash-screen.gif HTTP/1.1" 200 35674
Operations to perform:
Synchronize unmigrated apps: floppyforms, crispy_forms, productionserver
Apply all migrations: ADSMSettings, admin, ScenarioCreator, sessions, auth, contenttypes, Results
Synchronizing apps without migrations:
Creating tables...
Installing custom SQL...
Installing indexes...
Running migrations:
No migrations to apply.
[12/Feb/2015 12:45:47] "GET /results/DailyByProductionType/expnU/Graph.png HTTP/1.1" 200 0
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 60993)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 332, in send_headers
self.send_preamble()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 255, in send_preamble
('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 453, in _write
self.stdout.write(data)
File "C:\Users\Josiah\Py341\lib\socket.py", line 391, in write
return self._sock.send(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
[12/Feb/2015 12:45:48] "GET /results/DailyByProductionType/expnU/Graph.png HTTP/1.1" 500 59
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 332, in send_headers
self.send_preamble()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 255, in send_preamble
('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 453, in _write
self.stdout.write(data)
File "C:\Users\Josiah\Py341\lib\socket.py", line 391, in write
return self._sock.send(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 141, in run
self.handle_error()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 368, in handle_error
self.finish_response()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 331, in send_headers
if not self.origin_server or self.client_is_modern():
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 344, in client_is_modern
return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Josiah\Py341\lib\socketserver.py", line 609, in process_request_thread
self.finish_request(request, client_address)
File "C:\Users\Josiah\Py341\lib\socketserver.py", line 344, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\Josiah\VirtualPy341\lib\site-packages\django\core\servers\basehttp.py", line 129, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File "C:\Users\Josiah\Py341\lib\socketserver.py", line 665, in __init__
self.handle()
File "C:\Users\Josiah\Py341\lib\wsgiref\simple_server.py", line 126, in handle
handler.run(self.server.get_app())
File "C:\Users\Josiah\Py341\lib\wsgiref\handlers.py", line 144, in run
self.close()
File "C:\Users\Josiah\Py341\lib\wsgiref\simple_server.py", line 35, in close
self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'
This project has a quirk that we haven't seen in other Django projects in that whenever the client navigates away while a page is loading it prints an error message. This is low priority, because it doesn't seem to hurt anything but it spams the terminal that may have other useful information. Here's an example: