[Solved] Django Error: Did you install mysqlclient?

Error message

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?

Solution:

Modification__init__. Py (the same directory as settings.py)

Add the following information:

import pymysql
pymysql.install_as_MySQLdb()

Similar Posts: