So I'm new to photography and am trying to become well versed in both film and digital. Sorry if this comes off as a bit naive. When reading about and looking at film photography, it seems that the aim is to get the best image you can with no editing.
Well, I don't know if I can agree with that. It may well be the case for some people. But the entire history of photography, film as well as digital, has been a history of manipulation of every possible factor in order to get the desired image, whether that image is a highly realistic portrayal of the original scene or a fantastic surrealistic image bearing little resemblance to what the original scene looked like.
That manipulation included (at various times) the use of specific films, lenses, filters, exposures and exposure times, f-stops, and shutter speeds. Then you've got the darkroom tricks of dodging and burning, cropping, holding back, solarization, use of specific developers, papers for printing, enlarging lenses, etc, etc.
Sure there are some who are into 'straight photography' and who pursue the ideal image as an accurate reflection of what the scene looked like originally. This can be especially important in photojournalism, where manipulating images is not seen as artistic, but as lying.
When looking into digital it seems that many people edit their images. Does this depend on what the images are being used for? What is the general consensus on this? Is it looked down upon if the images are not for commercial use? Does it depend on what sort of editing is being done?
I know there will be many views on this, but I'm looking for a pretty broad answer.
I do not think there is a 'general consensus' on issues like this.
I tend to do very little editing of my images, film or digital. A big part of the reason I don't edit my photos much is because I am color-blind. So a lot of the type of editing one can do with Photoshop and similar applications, I cannot do with confidence; I'm more likely to ruin an image that way. I typically crop a bit if I feel it is required to make a more pleasing photo, adjust levels, and call it good.
That doesn't mean my way is the right way, the only way, the best way, or the consensus way. It's just how I do it. I have no objection to the way anyone else does it.