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",
}
}
This error has nothing to do with mysql or your database connection and its configuration. Seems more of an issue in one of the ORM packages
You’ve to include the complete error message. A single line doesn’t help.