开发者

Tipfy: "NotFound: 404" when accessing multi-auth example locally

开发者 https://www.devze.com 2023-02-05 19:41 出处:网络
I am using the Tipfy开发者_如何学编程 framework ( tipfy.org ) on the Google App Engine. I would like to extend the multi-auth example ( http://tipfy-auth.appspot.com/ ).

I am using the Tipfy开发者_如何学编程 framework ( tipfy.org ) on the Google App Engine. I would like to extend the multi-auth example ( http://tipfy-auth.appspot.com/ ).

To try the example, I installed Tipfy.

The *hello_world* app is accessible through the browser if I run the local server.

Then I added the multi-auth app in a second directory called multi_auth, added it in the config.py *apps_installed* list (removed hello_world) and reloaded the page.

I get the following output:

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

Obviously, the handler is not found, but why? Where can I set which app should be loaded?

I would be glad about a hint.


I just did the same process last night succesfully:

  1. Be sure to have downloaded all the extensions needed by the example using buildout
  2. Copy the multi-auth config.py file to the app root overwriting the original one.
  3. Copy all the files from multi-auth static and templates folders to the app root static and templates folders
  4. Be sure that config.py has 'apps.multi-auth' in the apps_installed list


Did you define the rules for the request handlers as described in the documentation?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号