How to install Django + MySQL Support on Ubuntu 11.10

Tags:

# Install MySQL
sudo apt-get install mysql-server

# Install Dependencies
sudo apt-get install python-setuptools build-dep python-mysqldb

# Install Django
wget http://www.djangoproject.com/download/1.4/tarball/
tar zxf Django-1.4.tar.gz
cd Django-1.4
sudo python setup.py install

# Install Python MySQL Support
http://downloads.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz
tar zxf MySQL-python-1.2.3.tar.gz
cd MySQL-python-1.2.3
python setup.py build
sudo python setup.py install

# Verify you are all covered
python
>>> import MySQLdb
>>> MySQLdb.apilevel
‘2.0′
>>> import django
>>> print django.VERSION
(1, 4, 0, ‘final’, 0)

Write a Comment (0)
Perma Link.

Hello World!

I’ve decided to publish a personal blog to organize my thoughts better. I’ve been using computer for about 12+ years and believe it or not, this’s my first blog entry.

I’ll try to write about programming (PHP mostly), web security and server management. I hope these would help someone.

You’d be able to view my current projects and my previous projects here. Feel free to submit your comments, that would be very helpful.

Hello Blog :)

.!.
Write a Comment (1)
Perma Link.