Please make sure that MySQLdb module is installed at your machines.
Checking step:
1- open python shell
>> python
Checking step:
1- open python shell
>> python
2- import the module
>> import MySQLdb
# if no news, then good news
else "Error no module named MySQLdb" exist() and do step 3
3- install module
>> sudo apt-get install python-mysqldb
and then confirm by repeating first 2 steps again.
===============================
Make sure of installing the Django framework on your machines
>> sudo apt-get update
>> sudo apt-get install python-django
>> import MySQLdb
# if no news, then good news
else "Error no module named MySQLdb" exist() and do step 3
3- install module
>> sudo apt-get install python-mysqldb
and then confirm by repeating first 2 steps again.
===============================
Make sure of installing the Django framework on your machines
>> sudo apt-get update
>> sudo apt-get install python-django
then check it by:
>> django-admin --version
>> 1.8.7
and also pymysql module
>> sudo apt-get install python-pymysql
>> django-admin --version
>> 1.8.7
and also pymysql module
>> sudo apt-get install python-pymysql
Comments
Post a Comment