Thursday, February 04, 2010

HOWTO : Django and MySQL on Ubuntu 9.10

Install MySQL and Django

sudo apt-get update
sudo apt-get install mysql-server mysql-client python-mysqldb python-django


Create a softlink
sudo ln -s /usr/lib/python-django/bin/django-admin.py /usr/local/bin/django-admin.py

Create a database namely djangodb (or any other name)
mysql -u root -p

create database djangodb;
exit


That's all! See you.