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: 388
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:
- User visits application
- Thread starts
- Until the thread finishes, that user's server instance hangs
- Once the thread completes, a response is delivered to the user
- 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