Monday, 1 July 2019

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

Make sure mysqlclient is installed in your system then add below code in __init__.py file

import pymysql
pymysql.install_as_MySQLdb()

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

TypeError: argument of type 'WindowsPath' is not iterable

 Please make to modify settings.py file: DATABASES = { 'default' : { 'ENGINE' : 'django.db.backends.sqlite3&...