Check out example codes for "django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?". It will help you in understanding the concepts better.

Code Example 1

//For Mysql sudo apt-get install libmysqlclient-dev  //If you are using MariaDB sudo apt-get install libmariadbclient-dev  pip install mysqlclient  /* 	If you are getting a error like     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1     then :  */ sudo apt-get install python3-dev  //Then  pip install mysqlclient

Code Example 2

pip3 install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip

Learn ReactJs, React Native from akashmittal.com