在WinXP底下,明明按照官網的指示裝了Django,也可以run server起來,但是就是無法註冊,會出現下面的error
結果是版本不對,目前官網提供的1.3.1太新,換回去當初開發用的1.2.5就可以了
下載點 http://www.djangoproject.com/download/1.2.5/tarball/
D:\xampp\htdocs\testqa>python manage.py runserver
Validating models...
0 errors found
Django version 1.4 pre-alpha, using settings 'testqa.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[16/Nov/2011 16:16:55] "GET / HTTP/1.1" 200 9164
[16/Nov/2011 16:16:56] "GET /opensearch.xml HTTP/1.1" 200 383
[16/Nov/2011 16:16:57] "GET /account/signin/ HTTP/1.1" 200 13982
[16/Nov/2011 16:17:01] "GET /account/local/register/ HTTP/1.1" 200 6660
[16/Nov/2011 16:17:04] "GET /opensearch.xml HTTP/1.1" 200 383
[16/Nov/2011 16:17:06] "GET /account/signin/ HTTP/1.1" 200 13982
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 1901)
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py", line 139
, in __init__
----------------------------------------
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
Exception happened during processing of request from File "C:\Python27\lib\Soc
ketServer.py", line 639, in __init__
('12 7 self.handle()
.0 . File "C:\Python27\lib\wsgiref\simple_server.py", line 116, in handle
0.1', 1902)
Traceback (most recent call last):
---------------------------------------- self.raw_requestline = self.rfile.re
adline()
File "C:\Python27\lib\SocketServer.py", line 582, in process_request_thread
E xception happened during processing of request from File "C:\Python27\lib\soc
ket.py", line 447, in readline
( ' self.finish_request(request, client_address)
1 File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
27 self.RequestHandlerClass(request, client_address, self)
.0.0 . File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py", lin
e 139, in __init__
1' super(WSGIRequestHandler, self).__init__(*args, **kwargs)
, 1903) data = self._sock.recv(self._rbufsize)
File "C:\Python27\lib\SocketServer.py", line 639, in __init__
timeout: timed out
T-raceback (most recent call last):
--------------------------------------- self.handle()
File "C:\Python27\lib\SocketServer.py", line 582, in process_request_thread
File "C:\Python27\lib\wsgiref\simple_server.py", line 116, in handle
self.finish_request(request, client_address)
self.raw_requestline = self.rfile.readline()
File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
File "C:\Python27\lib\socket.py", line 447, in readline
- self.RequestHandlerClass(request, client_address, self)
---------------------------------------
E File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py", line 13
9, in __init__
xception happened during processing of request from data = self._sock.recv(se
lf._rbufsize)
( super(WSGIRequestHandler, self).__init__(*args, **kwargs)
' File "C:\Python27\lib\SocketServer.py", line 639, in __init__
1t2imeout: timed out
7 . self.handle()
0. File "C:\Python27\lib\wsgiref\simple_server.py", line 116, in handle
0----------------------------------------. self.raw_requestline = self.rfile.
readline()
1
File "C:\Python27\lib\socket.py", line 447, in readline
', 1904 ) data = self._sock.recv(self._rbufsize)
timeout: timed out
-T---------------------------------------raceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py", line 139
, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File "C:\Python27\lib\SocketServer.py", line 639, in __init__
self.handle()
File "C:\Python27\lib\wsgiref\simple_server.py", line 116, in handle
self.raw_requestline = self.rfile.readline()
File "C:\Python27\lib\socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
timeout: timed out
----------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\wsgiref\handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py", l
ine 67, in __call__
return self.application(environ, start_response)
File "C:\Python27\lib\site-packages\django\core\handlers\wsgi.py", line 242, i
n __call__
response = self.get_response(request)
File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 179, i
n get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 228, i
n handle_uncaught_exception
return callback(request, **param_dict)
File "D:\xampp\htdocs\testqa\forum\views\meta.py", line 201, in error_handler
return HttpResponseIntServerError(request)
File "D:\xampp\htdocs\testqa\forum\http_responses.py", line 39, in __init__
content=render_to_string('500.html', context_instance=RequestContext(request
)),
File "C:\Python27\lib\site-packages\django\template\context.py", line 172, in
__init__
self.update(processor(request))
File "D:\xampp\htdocs\testqa\forum\user_messages\context_processors.py", line
16, in user_messages
messages = request.user.get_and_delete_messages()
AttributeError: 'User' object has no attribute 'get_and_delete_messages'
[16/Nov/2011 16:17:12] "POST /account/local/signin/ HTTP/1.1" 500 59
留言
張貼留言