首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tipfy:"NotFound: 404“当本地访问多重身份验证示例时

Tipfy:"NotFound: 404“当本地访问多重身份验证示例时
EN

Stack Overflow用户
提问于 2011-01-22 00:24:05
回答 2查看 378关注 0票数 2

我在Google App Engine上使用Tipfy框架( tipfy.org )。我想扩展多身份验证示例( http://tipfy-auth.appspot.com/ )。

为了尝试这个示例,我安装了Tipfy。

如果我运行本地服务器,则可以通过浏览器访问*hello_world*应用程序。

然后,我将多身份验证应用程序添加到名为multi_auth的第二个目录中,将其添加到config.py *apps_installed*列表中(删除了hello_world),并重新加载了页面。

我得到以下输出:

代码语言:javascript
复制
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

显然,没有找到处理程序,但是为什么呢?我可以在哪里设置应该加载哪个应用?

如果有个提示我会很高兴。

EN

回答 2

Stack Overflow用户

发布于 2011-02-06 08:29:17

我昨晚成功地完成了同样的过程:

  1. 确保已将使用多身份验证config.py文件的示例所需的所有扩展下载到应用程序根目录,并覆盖原始文件。
  2. 将多身份验证statictemplates文件夹中的所有文件复制到应用程序根目录statictemplates文件夹<代码>H212<代码>H113请确保config.py在<代码>D15列表<代码>H216<代码>G217中具有
票数 1
EN

Stack Overflow用户

发布于 2011-01-22 02:44:04

您是否按照文档中的描述定义了请求处理程序的规则?

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4761140

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档