durusmail: quixote-users: scgi and Quixote 2.6
scgi and Quixote 2.6
2009-05-06
2009-05-06
2009-05-07
2009-05-07
scgi and Quixote 2.6
Neil Schemenauer
2009-05-07
dream fish  wrote:
> i'm new to python and quixote. i've installed
> apache2.2.11+python2.5.2+quixote2.6+scgi1.13 on my computer(i use fedora10),
> but i've met a problem:
> i read the article "A Quixote Application:Getting
> Started",
> and put the simpliest example code on my computer, the code files are:

That guide is quite old and does not apply to Quixote 2. I would
suggest starting with the mini demo (demo/mini_demo.py). You can
copy to a different place and use it as a template for a new
appplication. See .

If you want to use SCGI, check back with this list if you need help.
Basically you can change:

    from quixote.server.simple_server import run
    print 'creating demo listening on http://localhost:8080/'
    run(create_publisher, host='localhost', port=8080)

to:

    from quixote.server.scgi_server import run
    run(create_publisher, port=3000)

Regards,

  Neil

reply