Ticket #2772: patch_sqlite3_base_revised.diff
File patch_sqlite3_base_revised.diff, 738 bytes (added by , 18 years ago) |
---|
-
django/db/backends/sqlite3/base.py
3 3 """ 4 4 5 5 from django.db.backends import util 6 6 7 try: 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 8 12 except ImportError, e: 9 13 from django.core.exceptions import ImproperlyConfigured 10 raise ImproperlyConfigured, "Error loading pysqlite2module: %s" % e14 raise ImproperlyConfigured, "Error loading module: %s" % e 11 15 12 16 DatabaseError = Database.DatabaseError 13 17