def __init__(self, thread_ID): self.thread_ID = thread_ID threading.Thread.__init__(self) self.app = current_app._get_current_object()