2👍
✅
MySQLdb does not support Python 3.
There are other clients available though.
You can use mysqlclient. Which is a fork of MySQLdb.
0👍
The MySQLdb package you are using is not Python 3. It is a Python 2 package. In Python 2 you can raise an error as you see at the bottom of this stack trace. In Python 3 it should be:
raise errorclass(errorvalue)
- [Answered ]-How to access pk in views (Django)
- [Answered ]-How to set Djangos through_field to an Intermediate model nested field
Source:stackexchange.com