Sunday, January 2, 2011

Re: Django dev server issue

The exception you're seeing is just a response to stopping the request in the browser.  The real problem is that your view function is hanging.  Could you post the source to the view (and the substantial parts of your template)?  Very hard to offer suggestions without the right data.

- Craig -

On Sun, Jan 2, 2011 at 16:25, daniels <daniels0xff@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment