Posts

Showing posts with the label GAE

[GAE] 判別使用者使用哪個裝置連線

其實一開始的問題只是想知道client IP, webapp2 API找了老半天沒有, 結果是在更底層的webOb (TMD...) Anyway, 剛好手邊有iphone, ipad, imac 跟 asus nb, 就來紀錄一下各自的 User-Agent... Apple的browser都是 safari, asus我用IE, Chrome, FF Safari:     iphone(iOS5) - Mozilla/5.0 ( iPhone ; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari /7534.48.3     ipad(iOS5) - Mozilla/5.0 ( iPad ; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari /7534.48.3     iMac(MacOS10.6.8) - Mozilla/5.0 ( Macintosh ; Intel Mac OS 10_6_8 ) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari /7534.50 Chrome:    ASUS(Windows 7) - Mozilla/5.0 ( Windows NT 6.1 ) AppleWebKit/535. (KHTML, like Gecko) Chrome /15.0.874 120 Safari/535.2      iMac(MacOS10.6.8) - Mozilla/5.0 ( Macintosh ; Intel Mac OS 10_6_8 ) AppleWebKit/534.50 (KHTML, like Gecko)  Chrome /15.0.874 1...

[GAE] 使用 webapp2 發生 Server Error

Event: 改用webapp2時發生Server Error Reason:    webapp2 在 appspot 僅提供 python27 runtime使用. Correction:    In app.yaml,       runtime: python27 Reference:   連結一 另外, python27 runtime 不允許 threadsafe的選項?! 不知道為什麼...紀錄一下, 有空再追。