def uses_database(name='sqlite3'):
 try:
  engine = settings.DATABASES['default']['ENGINE']
 except KeyError:
  engine = settings.DATABASE_ENGINE
 return (engine == ('django.db.backends.%s' % name))

def uses_database ( name = 'sqlite3' ) : try : engine = settings . DATABASES [ 'default' ] [ 'ENGINE' ] except KeyError : engine = settings . DATABASE_ENGINE return ( engine == ( 'django.db.backends.%s' % name ) )
checks if the game is currently using a given database .