Were you able to solve the problem? I regularly get hangs (around a
minute) as well, using python 2.6.5 from MacPorts and Django 1.2,
usually when using Chrome's incognito mode. Also, I sometimes have to
reload the page multiple times until all the media files load since
there seem to be errors in the requests.

My traceback usually looks like this:

Traceback (most recent call last):
  File "/Users/tom/sg/django-1.2/django/core/servers/basehttp.py",
line 281, in run
    self.finish_response()
  File "/Users/tom/sg/django-1.2/django/core/servers/basehttp.py",
line 321, in finish_response
    self.write(data)
  File "/Users/tom/sg/django-1.2/django/core/servers/basehttp.py",
line 400, in write
    self.send_headers()
  File "/Users/tom/sg/django-1.2/django/core/servers/basehttp.py",
line 464, in send_headers
    self.send_preamble()
  File "/Users/tom/sg/django-1.2/django/core/servers/basehttp.py",
line 382, in send_preamble
    'Date: %s\r\n' % http_date()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/socket.py", line 300, in write
    self.flush()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/socket.py", line 286, in flush
    self._sock.sendall(buffer)
error: [Errno 32] Broken pipe

I am now using 
http://www.newthink.net/2010/12/17/multi-threaded-django-dev-server/
which has solved the problem so far.

Thomas


On Jan 2, 1:25 pm, daniels <daniels0...@gmail.com> wrote:
> Hi,
> I'm having a issue with Django's dev server. I did a "django-admin.py
> startproject" then "manage.py startapp home", then added the app in
> settings.py and in urls.py. The app only has  a index function in
> views.py which is mapped to / and just renders a simple html template.
> What happens is that sometimes(and this is often) when i load the page
> in a broswer (tryed Chrome and Firefox) or refresh it, the page starts
> loading but it never finishes. And if i hit the browser's stop button
> i get this in the console
>
> Exception happened during processing of request from ('127.0.0.1',
> 52495)
> Traceback (most recent call last):
>   File "C:\Python26\lib\SocketServer.py", line 283, in
> _handle_request_noblock
>     self.process_request(request, client_address)
>   File "C:\Python26\lib\SocketServer.py", line 309, in process_request
>     self.finish_request(request, client_address)
>   File "C:\Python26\lib\SocketServer.py", line 322, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "C:\Python26\lib\site-packages\django\core\servers
> \basehttp.py", line 562, in __init__
>     BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
>   File "C:\Python26\lib\SocketServer.py", line 618, in __init__
>     self.finish()
>   File "C:\Python26\lib\SocketServer.py", line 661, in finish
>     self.wfile.flush()
>   File "C:\Python26\lib\socket.py", line 297, in flush
>     self._sock.sendall(buffer(data, write_offset, buffer_size))
> error: [Errno 10053] An established connection was aborted by the
> software in your host machine
> ----------------------------------------
>
> Any idea what's causing this? As it really cripples my dev time.
> I'm on a Windows 7 32bit machine

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to