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:
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?
- [Solved] Error when connecting to MySQL when creating Django project
- Django: How to Solve Using Pymysql Error
- How to Solve Django Error: No module named ‘MySQLdb’
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named ‘M…
- [Solved] ModuleNotFoundError: No module named ‘MySQLdb’
- [Solved] peewee error: ImportError: No module named ‘MySQLdb’;pymysql error: from . import connections # noqa: E402
- How to Solve Django xadmin installation Error [7 Types of Errors]
- ImportError: No module named pytz
- Django path Error: ‘Specifying a namespace in include() without providing an app_name ‘