Starting So you know Python and want to make a website. web.py provides the code to make that easy. If you want to do the whole tutorial, you'll need to have installed Python, web.py, flup, psycopg2, and Postgres (or equivalent database and Python driver). For details, see webpy.org. If you have an existing web.py project, take a look at the upgrade page for info on migrating. Let's get started. U
http://webpy.org/install にあるインストール方法によると、site-packages ディレクトリにコピーするだけということだ。 Debian環境では、site-packagesは"/usr/lib/python2.4/site-packages/"にある。 web.pyの本体をもらってきてコピーする。 # wget http://webpy.org/web.py # cp web.py /usr/lib/python2.4/site-packages/ # chmod 644 /usr/lib/python2.4/site-packages/web.py とりあえず、動作しているthttpdを使って動かして見ることに。 速度的な問題になるようなら、reddit.comでやっているように、lighttpd上でfastcgiすればいいだろう。 ここのcgi-binには
Pythonで最近注目されているWebフレームワークとしてweb.pyがあります。これをレンタルサーバーのような、制限の多いCGI環境で使うにはちょっとした工夫が必要です。以下に述べる設定はXREA(CGIにpythonが使える。素敵(^^)v)の場合ですが、ほかのレンタルサーバーでもほとんど同じだと思います。 マルチスレッド処理の無効化 web.pyはWSGI上で動作し、WSGIは内部でマルチスレッド処理をしていますが、XREAではCGIプログラム内でのマルチスレッド処理を許可していないため、無効化してやる必要があります。 2006/5/20追記: 利用しているサーバーが、CGI内でのマルチスレッド処理を許可しているなら、このステップは必要ありません web.pyおよびweb.pyが使用するflupのコードを追っていった結果、以下の箇所を変更すればマルチスレッド処理を無効化し、シングルス
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at
About web.py web.py is a web framework for Python that is as simple as it is powerful. web.py is in the public domain, you can use it for whatever purpose with absolutely no restrictions. Install web.py To install the latest web.py for Python 3, please run: The latest 0.62 release supports Python >= 3.5. Version 0.51 is the last release with Python 2.7 support. A minimal web.py application Save co
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く