べすとえふぉーと

プログラミング等のノート 

GAE

GAEで "Error,failed auth error" が発生した場合のアップデート方法

oauth2 オプションを追加して実行 # appcfg.py --oauth2 update appdir

GAEで日本語ファイル名を指定してファイル出力

とりあえず例としてContent-Typeはoctet-stream self.response.headers["Content-Type"] = "application/octet-stream; "拡張子はCSV SetHeaderString = 'attachment; filename="' JpStr = u'_日本語ファイル名_'.encode('utf-8') JpStr = urllib.quote(JpSt…