Freedom of religion isn't reason enough to deny any American their constitutional rights, President Barack Obama said Sunday as he addressed members of the LGBT community, one of his major sources of political and financial support.

Speaking at a Democratic Party fundraiser, Obama said it's important to recognize that some parts of the country remain uncomfortable with same-sex marriage and that it will take time for them to catch up to the majority of Americans who support such unions.

But while Americans hold dear the constitutional right to practice their religion free from government interference, he said that right can't be used to deny constitutional rights to others.

"We affirm that we cherish our religious freedom and are profoundly respectful of religious traditions," Obama said during remarks that were interrupted by repeated applause and cheers. "But we also have to say clearly that our religious freedom doesn't grant us the freedom to deny our fellow Americans their constitutional rights."

Earlier this month, Kentucky county clerk Kim Davis spent several days in jail for refusing to issue marriage licenses to gay couples despite a Supreme Court ruling that made same-sex unions legal nationwide. Davis said such marriages violate her Apostolic Christian faith.

Since being released, the Rowan County clerk has allowed marriage licenses to be issued, but only without her name and title. She also announced that she has left the Democratic Party and become a Republican.

Jim Obergefell, the plaintiff in Obergefell v. Hodges, the legal case that led the Supreme Court in June to rule narrowly in favor of gay marriage, introduced Obama.

The president began by recalling for his supporters that "seven years ago, we came together not just to elect a president, but to reaffirm our faith in that most American of ideals: the notion that people, no matter where they come from ... or who they love can change this country."

He noted that everyone in the U.S., regardless of sexual orientation, is protected by a federal hate crimes law he signed in his first year as president, and that federal contractors are barred from terminating employees for being gay.

Obama got some of his biggest cheers and loudest applause when he said "we live in an America where 'don't ask, don't tell' is something that 'don't exist.'" Obama lifted the Pentagon policy that barred gays and lesbians from serving openly in the military.

"And tonight, thanks to the unbending sense of justice passed down through generations of citizens who never gave up hope that we could bring this country closer to our founding ideals ... we now live in America where our marriages are equal as well," he said.