Do we both have to do credit counseling and attend the debt management class if my spouse and I are filing bankruptcy together?

Yes, you do. You need to appear together also, or it may cost you more.