2

Google App Engine で Tipfy フレームワーク ( tipfy.org ) を使用しています。マルチ認証の例 ( http://tipfy-auth.appspot.com/ )を拡張したいと思います。
この例を試すために、Tipfy をインストールしました。
*hello_world* アプリは、ローカル サーバーを実行している場合、ブラウザーからアクセスできます。
次に、マルチ認証アプリを multi_auth という 2 番目のディレクトリに追加し、それを config.py *apps_installed* リストに追加して (hello_world を削除)、ページをリロードしました。

次の出力が得られます。

Traceback (most recent call last)

*
  File "/home/ideaglobe/ideabox/tipfy/project/multiauthapp/distlib/tipfy/__init__.py", line 442, in wsgi_app

   [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] response = self.handle_exception(request, e)

*
  File "/home/ideaglobe/ideabox/tipfy/project/multiauthapp/distlib/tipfy/__init__.py", line 430, in wsgi_app

   [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] rv = self.dispatch(request)

*
  File "/home/ideaglobe/ideabox/tipfy/project/multiauthapp/distlib/tipfy/__init__.py", line 547, in dispatch

   [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] raise request.routing_exception

  [console ready]
  >>> dump()
  Local variables in frame
  self  <tipfy.Tipfy object at 0x9d7f22c>
  request   <Request 'http://localhost:8080/' [GET]>
  >>>

NotFound: 404: Not Found

明らかに、ハンドラーが見つかりませんが、なぜですか? ロードするアプリはどこで設定できますか?

ヒントになれば幸いです。

4

2 に答える 2

1

昨夜、同じプロセスを成功させました:

  1. を使用して、例で必要なすべての拡張機能をダウンロードしたことを確認してくださいbuildout
  2. マルチ認証config.pyファイルをアプリのルートにコピーして、元のファイルを上書きします。
  3. マルチ認証statictemplatesフォルダーからすべてのファイルをアプリのルートstatictemplatesフォルダーにコピーします
  4. config.py がリスト'apps.multi-auth'にあることを確認してくださいapps_installed
于 2011-02-06T00:29:17.047 に答える
0

ドキュメントに記載されているように、リクエスト ハンドラのルールを定義しましたか?

http://www.tipfy.org/wiki/extensions/auth/#authentication-endpoints

于 2011-01-21T18:44:03.677 に答える