cannot import name ‘Error’ from ‘mysql.connector’
To solve the error below: I needed to install mysql_connector via: I had already installed mysql via: But python needs both.
To solve the error below: I needed to install mysql_connector via: I had already installed mysql via: But python needs both.
If you have changed your database schema, you can up date your model by first running the inspectdb command. If you have too many tables in your database, pipe the results to a temporary file first and then manually copy the models over. Then run: ref: https://dev.to/idrisrampurawala/creating-django-models-of-an-existing-db-288m