candidate: Effective on October 1 , 1804 , the purchased territory was organized into the Territory of Orleans ( most of which became the state of Louisiana ) and the District of Louisiana , which was temporarily under the control of the governor and judges of the Indiana Territory .