Tipfy: “NotFound: 404” when accessing multi-auth example locally

我们两清 提交于 2019-12-13 16:15:55

问题


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.


回答1:


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



回答2:


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

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



来源:https://stackoverflow.com/questions/4761140/tipfy-notfound-404-when-accessing-multi-auth-example-locally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!