Ticket #5552: requiredsqlitedatabasename.patch
File requiredsqlitedatabasename.patch, 703 bytes (added by , 17 years ago) |
---|
-
trunk/django/db/backends/sqlite3/base.py
=== modified file 'trunk/django/db/backends/sqlite3/base.py'
102 102 103 103 def _cursor(self, settings): 104 104 if self.connection is None: 105 if not settings.DATABASE_NAME: 106 from django.core.exceptions import ImproperlyConfigured 107 raise ImproperlyConfigured, "Please fill out DATABASE_NAME in the settings module before using the database." 105 108 kwargs = { 106 109 'database': settings.DATABASE_NAME, 107 110 'detect_types': Database.PARSE_DECLTYPES | Database.PARSE_COLNAMES,