Gatura
Gatura

Reputation: 605

Adding database module

I am new to django

I would like to start a project but when i run it i get this error

Error loading MySQLdb module

How do i add the MYSQL module or any other module for that matter

Upvotes: 0

Views: 84

Answers (2)

Numenor
Numenor

Reputation: 1706

you should install a mysql client and a mysql python client for that client. So you should execute following commands(For Debian systems)

apt-get install mysql-client
apt-get install python-mysqldb

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

Install it on your system, using either a native installer or package, via pip or easy_install, or by running setup.py in the tarball.

Upvotes: 2

Related Questions