Erections are just inevitable and uncontrollable when you are young. Personally, I became a very stealthy boner-hiding Ninja for many years when I couldn't control blood flow to my southern region, but thinks do get better as you get older. Now there is no boner that I cannot control with mind over matter, except for my morning wood (this is totally normal. If you regularly have sleepovers/cuddle sessions with girls, they won't find morning wood weird. Every dude gets it).
Like KMJT sort of suggested, you should probably masturbate regularly. I know it sounds really weird, but its completely true that if you give yourself regular sexual release, you are less likely to become extremely aroused every time you are around a cute female. Your constant erections are probably your bodies way of screaming, "BRO! I got blue balls down here man, I need to bust a nut!!"
Another tip: Always have a hoody or a baggy shirt on hand, in your backpack etc. If you find you pop one at a very inappropriate time, like right before the bell rings for you to walk to your next class, throw on the hoody and position yourself so that you are basically covered up. Worked like a charm for me.
Also - DO NOT try the tuck-your-penis-upwards-into-your-belt trick because all it does is expose the head of your penis under your shirt, and all that takes is somebody to pat your stomache region or lift up your shirt somehow, and the cat is out of the bag.
Good luck son.