title: unable to serve pyramid app
body: <p>I'm pretty inexperienced with gunicorn. I have it installed within a virtual env and am trying to serve a pyramid app with the following:</p>
  
  <pre><code>env/bin/gunicorn --pid /home/staging/gunicorn.pid --bind 0.0.0.0:8000 pyzendoc:main
  </code></pre>
  
  <p>However everytime a request is sent I get the following trace from gunicorn</p>
  
  <pre><code>2013-10-30 14:16:20 [1284] [ERROR] Error handling request
  Traceback (most recent call last):
    File "/home/staging/api/env/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 126, in handle_request
      respiter = self.wsgi(environ, resp.start_response)
  TypeError: main() takes exactly 1 argument (2 given)
  </code></pre>
  
  <p>I'm guessing that main in the gunicorn refers to the main method in pyramids <strong>init</strong> but that method takes (global_config, **settings) as args so I think that maybe gunicorn is somehow looking at the wrong method. Has anyone seen anything similar before?</p>
  
  <p>Thanks</p>
  
  <p>C</p>