Ticket #5531: t5531.diff

File t5531.diff, 763 bytes (added by Ramiro Morales, 11 years ago)

Reuploading the same patch file because the Trac attachments missing problem after the django server move

  • django/db/backends/mysql/base.py

    diff -r 32a3fe78cb9b django/db/backends/mysql/base.py
    a b version = Database.version_info 
    1717version = Database.version_info
    1818if (version < (1,2,1) or (version[:3] == (1, 2, 1) and
    1919        (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__)
    2122
    2223from MySQLdb.converters import conversions
    2324from MySQLdb.constants import FIELD_TYPE
Back to Top