跳到主要內容

[django] server可以run, 但是無法註冊

在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

留言

這個網誌中的熱門文章

川庭屋:台南拜拜用的綠豆糕與塩糕

台南人拜拜時會附上一塊糕仔(綠豆糕或塩糕) 談到綠豆糕,大家一定都想到百年老店【富香齋】,台南人的共同記憶。 我尚未嚐過他們家的綠豆糕,但拿別家的給府城人試,都說味道有差,比較愛富香齋。 可惜富香齋現在歇業了,我去了好多次想詢問有沒有機會購買都未果,整個都是鐵門拉起的狀態。最近中秋節,路過碰巧燈火通明,見店內有幾位大姐在內閒聊,應是後代,原本想說算了,但又折回去問問,就算碰壁也算死了一條心。 大姐表示歇業主因是:師傅歸西了。 那...傳承呢?或有沒有其他徒弟呢? 「都沒有,底下兒女都在上班了。」 百年招牌為何沒人要接? 太累,做傳統糕餅幾乎是沒有假日、沒日沒夜的工作,比上班族/工程師生活品質差,現在至少還有個週休二日,若是以前的中秋節,全家現在都還在趕出貨呢!更現實的是,收入也沒比較好,綠豆糕的定價實在太便宜。 一代府城人的指標老店就這樣凋零,風味之美,只在老府城人的心中。 那衍生一個問題,現在天壇、大觀音亭等廟裡面拜的糕仔到底是誰在做的呢? 天壇旁邊的賣金阿婆說是富香齋親戚做的,但在哪裡? 又說不出個所以然,只叫我去富香齋問問(笑) 透過老府城人阿美姐得知,大觀音亭有綠豆糕跟塩糕,我傻呼呼地想進去「購買」,不料廟方卻說「這沒在賣的啦,想吃自己拿,或者投香油錢」,基本上在這邊拜拜買金時都會附,把綠豆糕或塩糕放在金上一起拜。 嚐了口味後,包裝雖不同,味道果然跟天壇一樣啊! 綠豆糕本身的包裝並沒有店名,一問大觀音亭廟公才知道, 就在對面而已。英代大飯店隔壁的民宅,照片上藍色這棟1樓就是了,沒有招牌,真的是超低調。敲門問候,裡頭才有人出來,老闆娘跟老闆都在,拿出熟悉的綠豆糕與塩糕包裝,才確定找對店家: 「川庭屋」 綠豆糕與塩糕 一包50元,一顆才5元,保存期限10天,最多30天。 你很難想像,古早味的東西,竟然連價格也是古早的,我嚐過萬川號的綠豆糕與塩糕,還是覺得川庭屋比較強。在這個手搖飲料店20元起跳的年代還有這樣的價格,不可思議。 與富香齋親戚?店家尷尬的澄清不是,只能算是同業,而且這邊也竟然經營70多年了,一直保持最傳統的作法與最簡單的原料,從未變過。

[心得] 新竹,菁承堂國術館

國術館常常給人黑黑暗暗的樣子,這把漫畫店的舒適與國術館的專業結合,讓整骨成為開心的旅程。 水田街198之1號 0978-222-297 無預約 現場排 上午08:30~12:00 下午14:00~21:30 周日公休 顛覆黑黑暗暗的國術館形象,而且固定價格200不亂開 超棒的免費服務 環境清亮,還放著令人放鬆的音樂呢 坐沙發讓人不想離開呀~ 側門設計,讓外面可以看到裡面,裡面可以看到外面 讓女孩子也可以放心被推拿,真是貼心至極的設計。 只可惜的是我的痛點是腳,但師傅一直處理不好, 反而我在台南林森路弄一下就好了XD

Processing 2 輸出中文字超簡單!

/* Processing輸入中文好簡單 DDLab,LFking */ PFont myFont; void setup() {   size(640, 360);   background(0);   myFont = createFont("標楷體",100);   /* 直接輸入字型名稱,只要電腦有安裝該自行即可顯示 */   textFont(myFont); } void draw() {   textSize(30);   text("數位藝術,Nice", 0 ,height/2); } 原始碼下載 https://github.com/ygtw/Processing_chinese_font