Install Python2.6.4, mod_wsgi and Django on CentOS 5.4

Once I got Django running on windows, I started hacking around setting Django up on CentOS. Little did I know, that upgrading Python and getting Django wouldn't be that easy. CentOS 5.4 uses python 2.4, and replacing it is not really an option since yum and other core packages depend on it.

The solution was to install 2.6.4 from source and use /opt for the prefix  so that 2.6.4 becomes the default python. Then move on to install mod_wsgi, setup Apache to use mod_wsgi and Install Django on CentOS 5.4

Read the rest of this post »

Setup Django on Windows with Apache and MySQL in 15 mins

Django is an open source web application development framework, for python. I am totally impressed with it as it allows rapid application development and provides a brilliant auto generated administrative interface for the web app. Setting up Django on Windows without Apache & Mysql is fairly out of the box, but doing that in production is not recommended. Hence I tried to use existing portable and ready made stacks for Django on windows. Having tried them I would say, I wasted around 6 hours trying to get everything working.

Bottom line: I decided to install Django on windows on my own using WAMP + mod_wsgi + mysql_python to run Django on windows. Lets see how:

Read the rest of this post »

Tutorial: Write your own GTalk custom bot in 10 mins!!

A Chat bot is completely automated, that is online 24×7 and will always send & respones to your requests, just like a virtual friend. You can do lot of interesting stuff  like receive alert notifications, post to twitter, book tickets, set reminders, write blogs, and so much more.

Now the reason I am specifically looking at GTalk here is, coz its on open standards - XMPP !!

So how do we write your GTalk custom bot in 10 minutes!

Read the rest of this post »