While the squash is cooking, heat oil in a large pan and add the onions. Cook until the onions are translucent and soft before adding the curry paste, tomatoes and coconut milk. Let this simmer for 10 minutes until it has thickened into a rich and moreish sauce.