Skip to content
Snippets Groups Projects
Commit 92d323cc authored by Adam Dobrawy's avatar Adam Dobrawy Committed by Tim Graham
Browse files

Added package names to 'Error loading MySQLdb module' error.

parent 5f8da229
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,10 @@ try:
import MySQLdb as Database
except ImportError as e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
raise ImproperlyConfigured(
'Error loading MySQLdb module: %s.\n'
'Did you install mysqlclient or MySQL-python?' % e
)
from MySQLdb.constants import CLIENT, FIELD_TYPE # isort:skip
from MySQLdb.converters import Thing2Literal, conversions # isort:skip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment