There's a couple of ways you could do it. Afocal is a method where you just hold or mount the camera and lens up to the eyepiece. Good for Moon and quick planet shots.
I'm not sure if your focuser is up to the task of prime focus with the K-m. You can get T adapters to fit 1 1/4 inch focuser tubes. I know Celestron make them. They are used with a Pentax K T ring to fit your camera to, but I'm not sure if your focuser has enough inward travel to reach focus.
|