Re: IE9+Django,Don't respond or Socket error!!!
On Mon, Mar 26, 2012 at 11:31 PM, br wrote: > 2) If you want to use the runserver that comes with django: > - to run runserver, use "manage.py runserver 0.0.0.0:8000" instead of > the default (which goes to localhost or 127.0.0.1) , and then figure > out your computer's IP address in your intranet (ivarious ways to do > this, i use "ipconfig" from command line and pick the one that > probably starts with 192.168). Then when you want to access your app, > do it at http://:8000 > To make things easier, create a free host redirect on no-ip.org[1] and name it something like 'mydjangoserver.no-ip.org', then install the No-IP service for automatically updating the redirect to match your current IP (on a defined interval, which I usually set for 30 mins). This way you can always point to http://mydjangoserver.no-ip.org regardless of which network you're currently on. Helps if you're on the go often, or if you've got a dynamic IP (my original problem back when I started using it). Cheers, AT [1] http://no-ip.org/ -- 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.
Re: IE9+Django,Don't respond or Socket error!!!
This is a problem of django development server, running on windows, and IE(7-9). Basically, the server locks up, and it doesn't really give much as far as useful errors go. Apparently no one that contributes to django uses IE for development and has been able to replicate this issue, because the issue has been closed as "works for me". https://code.djangoproject.com/ticket/15178 . This bug was a huge problem for our windows developers, and took a few days to figure out. It happened after we'd been developing for a while, and I'm not sure what it was about our particular project that makes it fail. This is only a problem with runserver , and will not effect your production server. Here are work-arounds: 1) install and use another web server for development - I recommend either django-extension's runserver_plus , or gunicorn (for either, just install the package, add to installed_apps, and then run either "manage.py runserver_plus" or "manage.py run_gunicorn" just like you would runserver).docs: https://github.com/django-extensions/django-extensions or http://gunicorn.org/run.html#contents 2) If you want to use the runserver that comes with django: - to run runserver, use "manage.py runserver 0.0.0.0:8000" instead of the default (which goes to localhost or 127.0.0.1) , and then figure out your computer's IP address in your intranet (ivarious ways to do this, i use "ipconfig" from command line and pick the one that probably starts with 192.168). Then when you want to access your app, do it at http://:8000 Good luck, hope that solves it Ben PS Django extensions has other good stuff too. I love shell_plus, the model graphing, and the profile server . On Mar 25, 1:19 am, Aommonly wrote: > === > > Exception happened during processing of request from ('127.0.0.1', > 60076) > Traceback (most recent call last): > File "C:\Python27\Lib\SocketServer.py", line 284, in > _handle_request_noblock > self.process_request(request, client_address) > File "C:\Python27\Lib\SocketServer.py", line 310, in process_request > self.finish_request(request, client_address) > File "C:\Python27\Lib\SocketServer.py", line 323, in finish_request > self.RequestHandlerClass(request, client_address, self) > File "E:\workspace\Police\lib\site-packages\django\core\servers > \basehttp.py", > line 560, in __init__ > BaseHTTPRequestHandler.__init__(self, *args, **kwargs) > File "C:\Python27\Lib\SocketServer.py", line 639, in __init__ > self.handle() > File "E:\workspace\Police\lib\site-packages\django\core\servers > \basehttp.py", > line 600, in handle > self.raw_requestline = self.rfile.readline() > File "C:\Python27\Lib\socket.py", line 447, in readline > data = self._sock.recv(self._rbufsize) > error: [Errno 10054] > > > > what can I do -- 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.
Re: IE9+Django,Don't respond or Socket error!!!
With IE, we have had to use the a non-local IP for the machine. Using 'localhost' or '127.0.0.1' did not work. On Mar 25, 12:19 am, Aommonly wrote: > === > > Exception happened during processing of request from ('127.0.0.1', > 60076) > Traceback (most recent call last): > File "C:\Python27\Lib\SocketServer.py", line 284, in > _handle_request_noblock > self.process_request(request, client_address) > File "C:\Python27\Lib\SocketServer.py", line 310, in process_request > self.finish_request(request, client_address) > File "C:\Python27\Lib\SocketServer.py", line 323, in finish_request > self.RequestHandlerClass(request, client_address, self) > File "E:\workspace\Police\lib\site-packages\django\core\servers > \basehttp.py", > line 560, in __init__ > BaseHTTPRequestHandler.__init__(self, *args, **kwargs) > File "C:\Python27\Lib\SocketServer.py", line 639, in __init__ > self.handle() > File "E:\workspace\Police\lib\site-packages\django\core\servers > \basehttp.py", > line 600, in handle > self.raw_requestline = self.rfile.readline() > File "C:\Python27\Lib\socket.py", line 447, in readline > data = self._sock.recv(self._rbufsize) > error: [Errno 10054] > > > > what can I do -- 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.
IE9+Django,Don't respond or Socket error!!!
=== Exception happened during processing of request from ('127.0.0.1', 60076) Traceback (most recent call last): File "C:\Python27\Lib\SocketServer.py", line 284, in _handle_request_noblock self.process_request(request, client_address) File "C:\Python27\Lib\SocketServer.py", line 310, in process_request self.finish_request(request, client_address) File "C:\Python27\Lib\SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "E:\workspace\Police\lib\site-packages\django\core\servers \basehttp.py", line 560, in __init__ BaseHTTPRequestHandler.__init__(self, *args, **kwargs) File "C:\Python27\Lib\SocketServer.py", line 639, in __init__ self.handle() File "E:\workspace\Police\lib\site-packages\django\core\servers \basehttp.py", line 600, in handle self.raw_requestline = self.rfile.readline() File "C:\Python27\Lib\socket.py", line 447, in readline data = self._sock.recv(self._rbufsize) error: [Errno 10054] what can I do -- 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.