Django - Threading in views without hanging the server

Posted by bobthabuilda on Stack Overflow See other posts from Stack Overflow or by bobthabuilda
Published on 2010-04-02T07:15:46Z Indexed on 2010/04/02 7:23 UTC
Read the original article Hit count: 364

One of my applications in my Django project require each request/visitor to that instance to have their own thread. This might sound confusing, so I'll describe what I'm looking to accomplish in a case based scenario, with steps:

  1. User visits application
  2. Thread starts
  3. Until the thread finishes, that user's server instance hangs
  4. Once the thread completes, a response is delivered to the user
  5. Other visitors to the site should not be affected by any other users using the application

How can I accomplish something like this? If possible, I'd like to find a lightweight solution.

© Stack Overflow or respective owner

Related posts about django

Related posts about python