我正在通过一个python金字塔教程,我一直在尽可能多的笔记,因为我可以在我写的文件内。 发生了一些奇怪的事情,我想知道为什么。 我编写了像教程中所做的那样的development.ini文件,然后添加了注释。 # we are using this file for configureation in development
# config our wsgi
[app:main]
#
我工作过Safari的金字塔教程 Python和金字塔框架 WEB应用我views.py文件里有我下面的代码有问题: @property
def current(self):
todo_id = self.request.matchdict.get('id')
todo = sample_todos.get(todo_id)
if not todo:
r
如何使用pyramid.wsgi文件中的production.ini文件的相对路径作为paster.get_app()函数的参数? 我试过了,它一直在抱怨它找不到该文件。在错误消息中,它添加了一个开始的正斜杠,所以如果下面的代码出现错误,说明找不到文件“/./production.ini”。 from pyramid.paster import get_app, setup_logging
im