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
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
Currently Dreamhost updated servers to Ubuntu 12.04, and i've got an error:
after compiling custom python and running "python ez_setup.py"
The solution was to compile python with --enable-unicode=ucs4 at step 1
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 python
Install
easy_install
,pip
Install
virtualenv
you can also add env path to
bashrc
Install django and everything else
Create project
Create
passenger_wsgi.py
inHOME/<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.executable
so you this is my version of passenger_wsgi