As a child, I learned my moral views at home. Semi-religious, but not overwhelmingly. My mom was a single mom, she believed very strongly in a moral code, but it didn't necessarily follow the Biblical code word for word.
As an adult, I am Agnostic, so IMHO the morals set down in the Bible are more like the Code of the Brethren - more guidelines, really.
Actually, were I to claim any code as my own, it would be the Wiccan Creed. "As ye harm none, do as ye will." Really, if you apply this to your daily life, if solves almost any moral dilemma. Stealing? Hurts someone. Violence? Hurts someone. Alcoholism? Drug use? Hurts yourself AND others. Infidelity? Hurts everyone involved. However, personal choices that harm no one are A-OK. Relations between consenting adults, regardless of gender? Harms no one, as long as precautions against STDs are observed. My decision to not attend church? Harms no one. My daughter's love for all things Anime and/or Harry Potter? Harms no one, except possibly her conservative Grandmother, who assures me that it is "demonic" and my child will surely end up in the Big Bad Place.
About the only way I cannot apply this to my life is in the eating of meat. I know that the consumption of meat causes harm to others - animals - and probably to me as well. But I can't do vegetarianism - I have tried, I just can't. I am a carnivore to the core. I guess, as vices go, it could be worse.