It takes some time, I was diagnosed at 13 and it took a while to sink in that I wouldn't just be taking insulin until I got better.
Like others have said, its all about learning how you react to things and finding out what works for you. Over time you'll get it. I still eat pizza, my diabetic...