GoDaddy vs Reality

So, recently I had to do an install for a client on GoDaddy...

Hey, don't look at me like that... they had some special deal, and I just didn't care.

After finding this article I wasn't satisfied... mostly because I could not use pre-1.0 Django.

So, I went in search of a pure python MySQL adapter. And I found it in pyMySQL

It's deliberately written to be compatible with MySQLdb.

All I had to do was put into my settings:

import pymysql

I put it in just before the DATABASES clause, and things are working.


GoDaddy are not only far behind, but they also don't give a rats arse about Python. So they don't install anything but basic python. This means no PIL -- no Image fields.

However... virtualenv to the rescue! Since virtualenv ships with a functional script, you can dowload and untar it, create your venv, and go from there.

What's that I hear you say? PIL needs compiling? Sure, but someone's already done the work for you. It's in the RPM.

rpm2cpio PIL-*.rpm | cpio -id

Then copy the PIL directory from usr/lib/python2.3/site-packages to your venv lib/python2.4/site-packages and you're away!

comments powered by Disqus