Don't buy a home if you have other consumer debt--that is a recipe to turn the "American Dream" into the "American Nightmare". Owning a home is never just the cost of the mortgage payment. Home ownership is an ongoing expense of routine maintenance and repairs, appliance replacement, taxes that increase, increased utilities, etc. Those expenses never "are done" or go away.
Best financial practice for home ownership: no consumer debt, save up a 20% down payment, purchase in the range of about 2-2.5 times your gross annual income, mortgage should be a 15 year, fixed rate conventional mortgage, including taxes, insurance, HOA fees that doesn't exceed 25% of your NET monthly incxome.
Using those guidelines allows you to pay off the house in a timely mamer, saving thousands of dollars in interest, and also allows you to invest 15% of your income into retirement savings, save additional amounts for home maintenance/repairs, and have money left over for vacations, etc. You should never purchase a home and veiw it as a good investment. Invest your money elsewhere. If you sell, and make a profit, that's great--but don't rely on that.