def set_asynchronous_for_sqlite(sender, connection, **kwargs):
 if (connection.vendor == 'sqlite'):
  cursor = connection.cursor()
  cursor.execute('PRAGMA synchronous=OFF;')

def set_asynchronous_for_sqlite ( sender , connection , ** kwargs ) : if ( connection . vendor == 'sqlite' ) : cursor = connection . cursor ( ) cursor . execute ( 'PRAGMA synchronous=OFF;' )
make sqlite3 be asynchronous .