diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-07-18 23:01:28 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-07-18 23:01:28 +0000 |
| commit | ca1281330a727bfd98a3902f906b27afbbaad703 (patch) | |
| tree | 73bbde561bf6417f116d30f1d5dd8435bec0ba79 /django/db/backends/sqlite3/base.py | |
| parent | 15497eee00cc4c1712796bec74236c41d94604bc (diff) | |
newforms-admin: Merged from trunk up to [7956].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 5cb21f5e3b..48d9ad4c4b 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -110,6 +110,9 @@ class DatabaseWrapper(BaseDatabaseWrapper): def _cursor(self, settings): if self.connection is None: + if not settings.DATABASE_NAME: + from django.core.exceptions import ImproperlyConfigured + raise ImproperlyConfigured, "Please fill out DATABASE_NAME in the settings module before using the database." kwargs = { 'database': settings.DATABASE_NAME, 'detect_types': Database.PARSE_DECLTYPES | Database.PARSE_COLNAMES, |
