Skip to content
Browse files

Fixed #5552 -- Raise an error, rather than failing silently, when DAT…


is not specified for SQLite.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 13643a7 commit 436ef181f33397a8c55fd3b626065a31cbc8d844 @malcolmt malcolmt committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/db/backends/sqlite3/
3 django/db/backends/sqlite3/
@@ -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,

0 comments on commit 436ef18

Please sign in to comment.
Something went wrong with that request. Please try again.