Ticket #2772: patch_sqlite3_base_revised.diff

File patch_sqlite3_base_revised.diff, 738 bytes (added by ymasuda[at]ethercube.com, 18 years ago)

revised version of the patch

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

     
    33"""
    44
    55from django.db.backends import util
     6
    67try:
    7     from pysqlite2 import dbapi2 as Database
     8    try:
     9        from sqlite3 import dbapi2 as Database
     10    except ImportError, e:
     11        from pysqlite2 import dbapi2 as Database
    812except ImportError, e:
    913    from django.core.exceptions import ImproperlyConfigured
    10     raise ImproperlyConfigured, "Error loading pysqlite2 module: %s" % e
     14    raise ImproperlyConfigured, "Error loading module: %s" % e
    1115
    1216DatabaseError = Database.DatabaseError
    1317
Back to Top