xxxxxxxxxx
(env) $ pip install pymysql
//add the below to __init__.py
import pymysql
pymysql.install_as_MySQLdb()
xxxxxxxxxx
#here is latest version of pymysql in mysqldb.
#add this settings in settings file
import pymysql
pymysql.version_info = (1, 4, 6, 'final', 0)
pymysql.install_as_MySQLdb()