Python 金字塔中的女服务员1.4

Python 金字塔中的女服务员1.4,python,multiprocessing,pyramid,waitress,Python,Multiprocessing,Pyramid,Waitress,我有一个用Python2.7.5编写的程序,我想把它转移到我在WebFaction上托管的帐户上。在那里,我想使用Pyramid1.4/Python2.7实现它。我已经安装了所有的软件包,但我似乎有一个金字塔本身的问题。在我使用的包列表下面是我得到的错误 md5, sys, os, tempfile, json, re, urllib2, time, multiprocessing requests 2013-10-18 21:37:48,821 ERROR [waitress][Dummy-

我有一个用Python2.7.5编写的程序,我想把它转移到我在WebFaction上托管的帐户上。在那里,我想使用Pyramid1.4/Python2.7实现它。我已经安装了所有的软件包,但我似乎有一个金字塔本身的问题。在我使用的包列表下面是我得到的错误

md5, sys, os, tempfile, json, re, urllib2, time, multiprocessing requests

2013-10-18 21:37:48,821 ERROR [waitress][Dummy-1] Exception when serving /
Traceback (most recent call last):
  File "/home/.../lib/python2.7/waitress/channel.py", line 329, in service
    task.service()
  File "/home/.../lib/python2.7/waitress/task.py", line 173, in service
    self.execute()
  File "/home/.../lib/python2.7/waitress/task.py", line 412, in execute
    self.write(chunk)
  File "/home/.../lib/python2.7/waitress/task.py", line 303, in write
    channel.write_soon(towrite)
  File "/home/.../lib/python2.7/waitress/channel.py", line 311, in write_soon
    self.outbufs[-1].append(data)
  File "/home/.../lib/python2.7/waitress/buffers.py", line 243, in append
    self.strbuf = strbuf + s
TypeError: cannot concatenate 'str' and 'list' objects

有没有关于如何调试的建议?

解决方案很简单,但不是那么明显。在view.py中,我有一个正在返回的视图

Response(x)
其中,x是我的多进程代码的输出,但它也是一个列表。这引起了一个问题。最后,我使用了render_to_response,并将结果作为字典的一部分传递

return render_to_response('main.mak', {'results':x})