TODO¶
提供一个使用newrequest订阅服务器改变请求的示例,提供基于当前已验证的用户ID的数据库中的其他用户数据。
Provide an example of adding a database connection to
settings
在“初始”中,从视图中使用它。提供Catchall 500错误视图的示例。
重定向到带参数的URL:
1[22:04] <AGreatJewel> How do I redirect to a url and set some GET params?
2some thing like return HTTPFound(location="whatever", params={ params here })
3[22:05] <mcdonc> return HTTPFound(location="whatever?a=1&b=2")
4[22:06] <AGreatJewel> ok. and I would need to urlencode the entire string?
5[22:06] <AGreatJewel> or is that handled automatically
6[22:07] <mcdonc> its a url
7[22:07] <mcdonc> like you'd type into the browser
添加一个使用级联从根为Static Assets提供服务的示例。
使用wsgiapp2+fileapp探索从处理程序操作返回的静态文件。
https://dannynavarro.net/2011/01/14/async-web-apps-with-pyramid/
https://groups.google.com/forum/!msg/pylons devel/0qxhtgeswrw/ytwxldu1wksj( Pyramid 进贾2 i18n),也可访问https://github.com/pylons/pyramid_jinga2/pull/14
简单异步任务队列:https://dannynnavarro.net/2011/01/23/async-pyramid-example-done-right/
Installing Pyramid on Red Hat Enterprise Linux 6 (John Fulton)
Chameleon 主模板通过beforerender注入。
http://whippleit.blogspot.com/2011/04/pyramid-on-google-app-engine-take-1-for.html
自定义事件:https://dannynnavarro.net/2011/06/12/using-custom-events-in-pyramid/
Tictactoe和 Pyramid 长投票:https://michael.mericakel.org/2011/6/21/Tictactoe-and-long-polling-with-pyramid/
JimPenny的Rolodex教程:http://jpenny.im/
Thorsten Lockert的formHelpers/pyramid示例:https://github.com/tholo/formHelpers2
python生态系统,简介:http://mirnazim.org/writing/python-ecologies-introduction/
外成长 Pyramid 处理程序:https://michael.mericakel.org/2011/8/23/outgrowing-pyramid-handlers/
将自定义配置(Google Analytics)合并到 Pyramid 应用程序中:https://russell.ballestrini.net/how-to-incorporate-custom-configuration-in-a-pyramid-application/
说明手册文件目录
将教程/概述移动到教程项目并替换为链接