I also bought a webhosting with Dreamhost to install Django. I checked the instructions at http://wiki.dreamhost.com/index.php/Django and wanted to verify that FastCGI is working. But I could not make the script below work. ######### #!/usr/bin/python2.3 from fcgi import WSGIServer def test_app(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) yield 'Hello, world!\n'
WSGIServer(test_app).run() ######## After a long time and with a big help of Eugene Lazutkin I figured out that the problem was CRLF where Linux expect LF.(I use XP and most files edit on my XP windows and then upload to Dreamhost server.) So, from now on I know I must use dos2unix command on Dreamhost. So, I verified that FastCGI is working now but still Django does NOT work on Dreamhost. When I try http://www.egsmtrade.com/django.fcgi where egsmtrade.com is my domain on Dreamhost I will get errors.You will see the errors when try http://www.egsmtrade.com/django.fcgi Can anybody please help? Thank you. regards, L