Using Django with Virtualenv and PIP

Recently, I have switched over to using Virtualenv and PIP for all my python devolopment, and I am totally convinced that is the way to go. I will not get into why we should use those, instead will outline how to set this up with Django for development as well as deployment.

 

1. Install Basic Tools like Git, PhpMyadmin, MySQL, Mercurial etc

 apt-get install curl sox mysql-server mysql-client libmysqlclient16-dev git-core apache2 libexpat1 ssl-cert unixodbc-dev libmyodbc phpmyadmin mercurial 

Read the rest of this post »

My new editor - Geany

I have been using the default text editor in Ubuntu, Gedit, and have modified it to work it like an IDE. It worked good, but still lacked a lot of features which a good IDE would have (like code folding, symbols browser etc). Lately, I saw a blog post with a mention of few new IDEs around which are as light wieght as G-Edit. That is when i first heard of Geany.

Geany is a lightweight but surprisingly powerful GTK-based IDE. I am totaly sold over it and it has become my default IDE in just 2 hours of playing around. Works beautifully with Python, Django, HTML, JS, CSS and FreeSWITCH C source files. Thats all i need for my coding. But Im sure it plays well with other languages too. It has advanced features of an IDE and remains very light weight.

Read the rest of this post »

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 »