The battle of Adwa was fought between Italians and Ethiopians in northern Ethiopia in 1896. The Italians were defeated and it was the greatest victory for Africans. Were there any other battles where Africans defeated Europeans between 1850 and 1950?
An example in which the native forces were numerically inferior1 the colonizing forces was the Battle of Annual in Morocco in 1924.
Not in Africa, but still part of the colonial efforts, in 1857 the Indian Rebellion managed to expel the British East India Company for two years.
1OTOH, the technological differences between the two forces were not as lopsided as it was in Isandlwana.
Afroblogger lists the greatest upsets by Africans against European armies
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.