Yes, Dangerous Minds had a basis in truth. The movie was loosely based on the real-life efforts of teachers to reach and inspire students in difficult circumstances.
The main character is the teacher. I'm not sure of the exact name in this based - on - true - story version, but she is the central figure trying to change the students' lives.