This is from the IMDB:

Diablo Cody is originally from Chicago, Illinois, and moved to Minnesota to live with her Internet boyfriend, Jonny who later became her husband. While there, she decided on a whim to take up stripping as a hobby of sorts.

She was working at an ad agency and got a promotion. The job wore her ragged and was something she did not particularly care for. It demanded organization which is something at which she was not very good. Eventually, she quit her day job with Jonny’s blessings and began stripping full-time. During the course of about a year she went from Amateur Night, which was her first stripping experience, to a place she refers to in her book as Sheiks, then to Déjà Vu, and so on. She then took up work as a phone-sex operator before returning to stripping.

Shortly thereafter she decided to quit stripping and she and Jonny married. They moved to what she refers to as “the 'burbs, and no one strips unless they’re taking a bubble bath.” Her stepdaughter was the flower girl in the wedding.

Wikipedia adds the details:

Cody began a parody blog called Red Secretary, detailing the (fictional) exploits of a secretary living in Belarus.[14] The events were thinly-veiled allegories for events that happened in Cody’s real life, but told from the perspective of a disgruntled, English-idiom-challenged Eastern Bloc girl.

In March 2003, Cody started an adult blog called The Pussy Ranch, using a pen name invented while speeding through Cody, Wyoming[15] listening to the song “El Diablo” by Arcadia.[16] On a whim, Cody signed up for amateur night at a Minneapolis strip club called the Skyway Lounge.[12][17] Having enjoyed the experience, and seeing reader interest, she eventually quit her day job to become a full-time stripper.[18] Cody also spent time working peep shows at Sex World, a Minneapolis adult novelty and DVD store.[citation needed]

https://en.wikipedia.org/wiki/Diablo_Cody

All of this was before she wrote the script to Juno.