Django

Code

Show
Ignore:
Timestamp:
07/18/08 17:36:31 (6 months ago)
Author:
mtredinnick
Message:

Fixed #5552 -- Raise an error, rather than failing silently, when DATABASE_NAME
is not specified for SQLite.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/backends/sqlite3/base.py

    r7926 r7956  
    111111    def _cursor(self, settings): 
    112112        if self.connection is None: 
     113            if not settings.DATABASE_NAME: 
     114                from django.core.exceptions import ImproperlyConfigured 
     115                raise ImproperlyConfigured, "Please fill out DATABASE_NAME in the settings module before using the database." 
    113116            kwargs = { 
    114117                'database': settings.DATABASE_NAME,