How would manage a deviated septum on a surgical basis?

Get examined first. The management depends on the diagnosis and severity and extent of the deviation. Typically the nose is decingestednforn an exam followed by inspection. Additional evaluation may include rhinoscopy or diagnostic imaging. Once anatomy of the deviation is defined, a treatment plan can be discussed and devised.
Several options. All involve straightening the septum to improve nasal airflow. The exact method chosen depends on where the obstruction to breathing exists: in the cartilage or the bone, or both. Also be aware that a deviated septum is not the only cause for nasal obstruction, so other areas of the nose (internal and external valves) may need to be treated to obtain an optimal result.
Septoplasty. A septoplasty is a surgical procedure to treat a deviated septum and improve nasal breathing. If there are symptoms like nasal obstruction, snoring or recurrent sinusitis, have your nose evaluated by a board certified otolaryngologist.