To fix no module named MySQLdb error with Python Django, we install the mysql-python package.
To do this, we run one of:
easy_install mysql-python(any OS)pip install mysql-python(any OS/ Python 2)pip install mysqlclient(any OS/ Python 3)apt-get install python-mysqldb(Ubuntu, etc.)cd /usr/ports/databases/py-MySQLdb && make install clean(FreeBSD)yum install MySQL-python(Fedora, CentOS, etc.)
to install the mysql-python package.