Dreamhost is a great host for small project. And it’s also Django friendly hosting. Everything good except python and Django version is a little bit out of date. Well it’s a whole day of work to figure out how to update Python 2.7.3, Django 1.4 on dreamhost and I really want to share with whoever finding it
Dreamhost is a great host for small project. And it’s also Django friendly hosting.
Share
I currently have private server, a shell account and a bit of luck. So here is what I do:
SSH to your host to upgrade python
Configure system to use our new Python. Open ~/.bashrc and add the following line
you can now check your python version with
which pythonInstall
easy_install,pipInstall
virtualenvyou can also add env path to
bashrcInstall django and everything else
Create project
Create
passenger_wsgi.pyinHOME/<site>/with following contentor this way
If you are using django 1.7, replace the last two line with
New version of python on Dreamhost will no longer return
sys.executableso you this is my version of passenger_wsgi