DreamhostアカウントでPollチュートリアルを機能させようとしています(Djangoをデプロイした経験はありません)。ここで見つけたスクリプト(http://gabrielfalcao.com/2008/12/02/hosting-and-deploying-django-apps-on-dreamhost/)をホームディレクトリにダウンロードして実行しました。これで、Python 2.5とDjangoが〜/ .myroot /にあり、Djangoプロジェクトディレクトリは〜/projects/です。
これが〜/ projects /ディレクトリの内容です(私はpolls/およびtemplates/ polls /ディレクトリを自分でコピーしました)。
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
投票アプリを機能させるにはどうすればよいですか?
アップデート
I finally got a "Hello World" Django app working with Passanger WSGI. It worked fine with both Server's default Python 2.3.5 and my installed Python 2.5.2.
Passanger WSGI - Django at Dreamhost Wiki