Archive for July 2008
We’ve been using Django a lot for some internal projects, and for various reasons we’re using CentOS 5 on the servers running them.
One nice feature of the Python build system I didn’t know about until today is the ability to make RPMs using the setup.py script. To build yourself some Django RPMs, just run:
python setup.py bdist_rpm
Unfortunately, this feature seems a bit hit and miss. Django needs a newer version of MySQL-python than ships with EL5, but unfortunately the bdist_rpm for this doesn’t work.
As such, here’s a link to an updated MySQL-python RPM I’ve built:
MySQL-python-1.2.2-1.x86_64.rpm
If you’re not using a 64bit server, you can download this source RPM and rebuild via rpmbuild –rebuild:
The scenario:
You have a website you need to move to a new web server on a new IP address. You intend to keep the domain and all URLs the same.
By utilising the Apache module mod_proxy we can make sure that all requests are sent to the correct server, despite any cached DNS entries which are pointing to the old IP. Whilst this isn’t too much of a problem for static web-sites, for modern, database driven sites it is vital that all data is written to the correct location. One particular benefit feature of this approach is that you can move just a single VirtualHost, where other approaches expect you to be moving everything hosted on that server.
(more…)
Every blog has to have a first post, and it seems to be convention for it to contain over-optimistic enthusiasm about the number of posts and/or readers, as well as telling everyone to ‘watch this space’ for enthralling new postings which generally never arrive, or which are decidedly un-enthralling when they do.
Instead, here’s that other geek blog staple, an xkcd post:


