I am trying to get a survey tutorial that runs on my Dreamhost account (I have no experience using Django). I downloaded the script that I found here ( http://gabrielfalcao.com/2008/12/02/hosting-and-deploying-django-apps-on-dreamhost/ ) in my home directory and executed it. Now I have Python 2.5 and Django in ~ / .myroot /, and my Django project directory is ~ / projects /
Here is the contents of the ~ / projects / directory (I myself copied the polls / and the templates / polls / directories).
projects/ |-- admin_media -> /home/imran2140/.myroot/usr/lib/python2.5/site-packages/django/contrib/admin/media |-- dispatch.fcgi |-- polls | |-- __init__.py | |-- __init__.pyc | |-- admin.py | |-- admin.pyc | |-- models.py | |-- models.pyc | |-- polls.db | |-- urls.py | |-- urls.pyc | |-- views.py | `-- views.pyc |-- script_templates | |-- dispatch.template | `-- htaccess.template `-- templates `-- polls |-- detail.html |-- index.html `-- results.html 5 directories, 17 files
Now, what do I need to do to get the polls app to work?
Update
I finally got Django's "Hello World" application working with WSGI Passanger. It worked great with both Python 2.3.5 by default and Python 2.5.2 installed.
Passanger WSGI - Django on the Dreamhost Wiki
django wsgi deployment dreamhost fastcgi
Imran
source share