diff -r 32a3fe78cb9b django/db/backends/mysql/base.py
a
|
b
|
version = Database.version_info
|
17 | 17 | version = Database.version_info |
18 | 18 | if (version < (1,2,1) or (version[:3] == (1, 2, 1) and |
19 | 19 | (len(version) < 5 or version[3] != 'final' or version[4] < 2))): |
20 | | raise ImportError("MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.__version__) |
| 20 | from django.core.exceptions import ImproperlyConfigured |
| 21 | raise ImproperlyConfigured("MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.__version__) |
21 | 22 | |
22 | 23 | from MySQLdb.converters import conversions |
23 | 24 | from MySQLdb.constants import FIELD_TYPE |