I am getting the following error when running "python manage.py migrate" in cpanel terminal. I am using mysql for database. The library that I am using is mysql-connector-python.
TypeError: DatabaseWrapper.display_name() takes 0 positional arguments but 1 was given
The following are the settings of my settings file:
DATABASES = {
"default": {
"ENGINE": "mysql.connector.django",
"NAME": "my-database-name",
"HOST": "localhost",
"PORT": "3306",
"USER": "my-database-username",
"PASSWORD": "my-password",
}
}
the code should be this way