An error occurred when connecting to the database :
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
terms of settlement :
pip install pymysql
And then in projectname/projectname/init.py Introducing this package
import pymysql
pymysql.install_as_MySQLdb()