DH and I share many of the same political views, but not all. As long as we can have a respectful conversation about it, it's fine. I can respect peoples' views that differ from mine, as long as they can reciprocate; if they can't, I just don't go there. But that wouldn't include my husband.
Like other people here have mentioned, my political views, and to a degree, my husband's, have evolved over time. I share views from both parties about various things, but starting out, when I was younger, I was more one sided. As I matured, my perspective broadened. DH is more one sided. We both hate the political climate we have now.
As for religion, we're pretty much on the same page. We also have the same work ethic, share similar goals in life, both love our home, our families and animals, etc., all things important to both of us. We always laugh that the two biggest things we argue about are driving (his!) and food (he's passionate about his food, gets cranky when anyone messes with his, lol) - both relatively minor issues in our lives.
I think we recognized when we met that our backgrounds are pretty similar, and we liked that about eachother. Our personalities are different, though (another running joke - I enjoy meeting people and my family will often find me deep in conversation with someone I just met; DH, on the other hand, used to have a bumper sticker that said, "Do I look like a freakin people person?"
). We each have our own hobbies and interests, and get to spend time doing those as well as things we both enjoy together. We are both close with our kids.