Divorce being okay and not okay is generally a vast and wide topic which is always debatable. For me, divorce being okay or not okay is situational.
Divorce is considered sacred - two separate souls being bonded into one in the sight of God. In religious terms, what has been connected by God cannot be separated by a mere human. For them it is, as they say, abominable among the sight of God, but in some cases like domestic violence, I don't think it is right to compromise your happiness just to be considered holy.
Divorce in itself is sad. Behind every divorce, there's bound to be a story, and none of them is a happy one. The only advice I can give is that marriage should be thought about carefully but we can never know a person that well, some people only shows their true colors after how many years of being together.
If you are more hurt than happy I think divorce is more than a happy choice. Maybe some consider divorce as bad since they think it gives less and less meaning to marriage. Since you can marry and divorce anyway, marriage seemed a lot more cheap to them since you can separate anyways but both marriage and divorce shouldn't be thought of lightly.
Traditional minded people would of course deny the possibility of marriage. I experienced this as well. My mother was thought of badly when she filed divorce against my dad. They mocked her (really bad) for her decision to split apart since the relationship isn't working really well anyway, she decided it was better to be apart than live inside a fake premise of peace and love.
Since then I knew reality isn't always a happy one. It gave me a lot of misconceptions when it comes to love (maybe a negative impact) but I guess it thought me how to be think maturely in my age. But then again, divorce being okay or not is subject to a person's opinion and mindset.
Personally, I don't want to get married just to be divorced. It's much more likely for me to not get married. Or maybe I'm just a coward, and I just don't want to experience bad things that's why I stray away from it, but whatever it is, I don't think I can look at love and marriage in such a pure and positive way again.