There are two reasons why Obama got elected.
#1: the Republicans nominated a candidate that it's base would not support.
#2: The press which used to be thought of as the "Fourth Estate" assigned to be the watchdogs of our democracy did nothing less than practice "advocacy journalism" by supporting one candidate over another. The job that the media did getting Obama elected can be considered to be their complete relinquishing of their duty to be the watchdogs and from here on in can be considered nothing more than a special interest PAC for the democrat party.
The people that voted for Obama were sold a bill goods that is nothing like the product they will soon receive. I don't blame so much the people for their ignorance. They are a product of our failed education system and a media intent on steering this country to their way of thinking rather than reporting on which way the country is heading. Ignorance is our most costly commodity.