LAS VEGAS -- Paris Hilton has pleaded guilty to two misdemeanors stemming from her drug-related arrest last month at a Las Vegas resort.

Hilton pleaded guilty in a Las Vegas courtroom Monday morning to drug possession and obstructing an officer.

Hilton told the judge that she obstructed justice by lying to officers about owning the cocaine-filled purse.

"I said that the purse wasn't mine to the officer," she said, and acknowledged that she had bought it months earlier.

When asked why she didn't fight the charge, her attorney, David Chesnoff said, "Ms. Hilton accepts the responsibility."

Under the terms of the deal, the 29-year-old celebutante will serve a year of probation and avoid a felony conviction, Clark County District Attorney David Roger said.

She must complete a drug abuse program, pay a $2,000 fine and serve 200 hours of community service.

The judge told Hilton that if she violates her probation, she will serve one year at the Clark County Detention Center, adding that the facility is "not the Waldorf Astoria."

Hilton was arrested Aug. 26 inside the Wynn resort, after police say a small plastic bag containing 0.8 grams of cocaine fell out of her Chanel purse as she reached for a tube of lip balm in front of a Las Vegas police lieutenant.

According to Clark County prosecutors, the original felony cocaine possession charge would not have resulted in any jail time.

Roger said he wanted to obtain a pledge from the hotel heiress to stay out of trouble, and said the plea deal accomplished that goal.

"If she is arrested for anything besides a minor traffic violation she will spend a year in jail," Roger said. "There will be no discussion. The court will have no discretion."

Chesnoff said the agreement does not call for Hilton to be assigned a probation officer, meaning she can't break any laws but won't have anyone to report to or check in with.

"Ms. Hilton understands the seriousness of the situation and appreciates the chance she is being given," Chesnoff told The Associated Press. "She has to stay out of trouble."

Hilton initially told police the purse and cocaine were not hers, but claimed some items in the bag, including rolling papers, $1,300 in cash and several credit cards.

She was questioned by police after her boyfriend, Las Vegas nightclub mogul Cy Waits, failed field sobriety tests given by a motorcycle officer.

The couple was stopped in a black Cadillac Escalade after the officer smelled a "vapor trail" of marijuana smoke.

Hilton was banned from two Wynn resorts on the Las Vegas Strip after the arrest, and her boyfriend was dismissed as a nightclub partner.

Hilton briefly faced a marijuana charge in July after a FIFA World Cup match in South Africa, but the case was dropped when a woman who was with her pleaded guilty to possessing the drug.

Video courtesy TMZ.com