xxxxxxxxxx
in my case compatibility problem
so install
django==3.0 or 3.1
pip install mysql-connector-python
pip install pymysql # i dont no why but in my case working
DATABASES = {
'default': {
'ENGINE': 'mysql.connector.django',
'NAME': 'db_name',
'USER': 'db_user',
'PASSWORD': 'mypass',
'HOST': 'localhost',
'PORT': '3306',
}
}
xxxxxxxxxx
#With MacOS:
brew install mysql pkg-config
pip install mysqlclient