Hi, May be you can post your source code,then we can check it whether there are some wongs with it.
2008/4/17, Jon <[EMAIL PROTECTED]>: > > > I successfully ran the complete tutorial (using version 0.96.1) on my > home machine over last weekend without incident. > > This week, I tried to bring up my new application at work and started > getting some strange errors in the admin tool. So I went back and > redid the tutorial (to see if I was doing anything different in my own > app that I could understand) and I got the same weird errors (which is > diffferent from what I got when I did this on my home machine - both > are Windows XP, one is Home, one is Office, and the home machine is on > Python 2.4 whereas the office machine is on Python 2.5 - those are the > only differences). > > When I try to open the Polls table in the admin tool (which has the > Date/Time), I get the following traceback: > > Django version 0.96.1, using settings 'mysite.settings' > Development server is running at http://127.0.0.1:8000/ > Quit the server with CTRL-BREAK. > [17/Apr/2008 11:37:11] "GET /admin/ HTTP/1.1" 200 5199 > [17/Apr/2008 11:37:16] "GET /admin/polls/choice/ HTTP/1.1" 200 1445 > [17/Apr/2008 11:37:19] "GET /admin/polls/choice/add/ HTTP/1.1" 200 > 3014 > [17/Apr/2008 11:37:19] "GET /admin/jsi18n/ HTTP/1.1" 200 801 > [17/Apr/2008 11:37:29] "GET /admin/ HTTP/1.1" 200 5199 > [17/Apr/2008 11:37:30] "GET /admin/polls/poll/ HTTP/1.1" 200 1435 > [17/Apr/2008 11:37:32] "GET /admin/polls/poll/add/ HTTP/1.1" 200 2881 > [17/Apr/2008 11:37:32] "GET /admin/jsi18n/ HTTP/1.1" 200 801 > Traceback (most recent call last): > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 273, in run > self.finish_response() > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 312, in finish_response > self.write(data) > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 391, in write > self.send_headers() > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 443, in send_headers > self.send_preamble() > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 370, in send_preamble > self._write('HTTP/%s %s\r\n' % (self.http_version,self.status)) > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 487, in _write > self.stdout.write(data) > File "C:\Python25\lib\socket.py", line 262, in write > self.flush() > File "C:\Python25\lib\socket.py", line 249, in flush > self._sock.sendall(buffer) > error: (10054, 'Connection reset by peer') > Traceback (most recent call last): > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 273, in run > self.finish_response() > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 312, in finish_response > self.write(data) > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 391, in write > self.send_headers() > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 443, in send_headers > self.send_preamble() > File "C:\Python25\Lib\site-packages\django\core\servers > \basehttp.py", line 373, in send_preamble > 'Date: %s\r\n' % time.asctime(time.gmtime(time.time())) > File "C:\Python25\lib\socket.py", line 262, in write > self.flush() > File "C:\Python25\lib\socket.py", line 249, in flush > self._sock.sendall(buffer) > error: (10054, 'Connection reset by peer') > > The admin app still appears to work and I can put new entries into the > table. I just keep getting these tracebacks anytime there is a date/ > time in the view. This does not appear on the Choices screen which > has no date in the tutorial, but if I add a date/time field, it starts > to happen there. Of course, the traceback indicates that it is > happening on the time.asctime() call. > > Is there something that changed in Python 2.5 that causes this? > > HELP :-( > > > Jon Rosen > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---