Tipfy: "NotFound: 404" when accessing multi-auth example locally
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:
- Be sure to have downloaded all the extensions needed by the example using
buildout
- Copy the multi-auth
config.py
file to the app root overwriting the original one. - Copy all the files from multi-auth
static
andtemplates
folders to the app rootstatic
andtemplates
folders - Be sure that config.py has
'apps.multi-auth'
in theapps_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
精彩评论