Django

Code

Ticket #5531: t5531.diff

File t5531.diff, 0.7 kB (added by ramiro, 9 months ago)

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

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

    old new  
    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