django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? code example
Example 1: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?
sudo apt-get install libmysqlclient-dev
sudo apt-get install libmariadbclient-dev
pip install mysqlclient
sudo apt-get install python3-dev
pip install mysqlclient
Example 2: mac django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?
File "C:\Users\user\env\lib\site-packages\django\db\backends\mysql\base.py", line 30, in <module>
'Did you install mysqlclient or MySQL-python?' % e
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'.
Did you install mysqlclient or MySQL-python?