我在Google App Engine上使用Tipfy框架( tipfy.org )。我想扩展多身份验证示例( http://tipfy-auth.appspot.com/ )。
为了尝试这个示例,我安装了Tipfy。
如果我运行本地服务器,则可以通过浏览器访问*hello_world*应用程序。
然后,我将多身份验证应用程序添加到名为multi_auth的第二个目录中,将其添加到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显然,没有找到处理程序,但是为什么呢?我可以在哪里设置应该加载哪个应用?
如果有个提示我会很高兴。
发布于 2011-02-06 08:29:17
我昨晚成功地完成了同样的过程:
config.py文件的示例所需的所有扩展下载到应用程序根目录,并覆盖原始文件。static和templates文件夹中的所有文件复制到应用程序根目录static和templates文件夹<代码>H212<代码>H113请确保config.py在<代码>D15列表<代码>H216<代码>G217中具有发布于 2011-01-22 02:44:04
您是否按照文档中的描述定义了请求处理程序的规则?
http://www.tipfy.org/wiki/extensions/auth/#authentication-endpoints
https://stackoverflow.com/questions/4761140
复制相似问题