Monday, May 13, 2013

How to Install Django and Mysql in Ubuntu Linux

Ubuntu is a very friendly environment for ubuntu developers.
Installation of Django is very simple.

Requirements:
  1. Python (no need to install separately, it will be as part of Ubuntu OS)
  2. Mysql server (if you would like to use mysql database)
  3. Python mysql db connector
  4. Latest Django tar file from djangoproject.com

Procedure:
  1. from the terminal (command prompt), install mysql-server by running the command "sudo apt-get install mysql-server"
  2. After sql server is installed, install python-mysqldb connector by running the following command "sudo apt-get install python-mysqldb"
  3. Download the latest django tar file from www.djangoproject.com, and run the following commands
    1. extract the tar file (use "tar xzvf Django-xxx.tar.gz" from the terminal window)
    2. From the terminal window, go to the extracted folder path by running the command "cd Django-xxx"
    3. run the command "sudo python setup.py install"

That's simple it is... You are ready go with  django development.

1 comment: