using django and twisted together

user223541 picture user223541 · Jan 20, 2010 · Viewed 15.2k times · Source

1)I want to devlop a website that has forums and chat.The chat and forums are linked in some way.Meaning for each thread the users can chat in the chat room for that thread or can post a reply to the forum. I was thinking of using django for forums and twisted for chat thing.Can i combine the two? The chat application devloped using twisted is linked to the forum.

2)If i use twisted and django what kind of web host shold i use while putting by website on web ?Shold i use a VPS? Or can i get a host that supports both?

Answer

Ignacio Vazquez-Abrams picture Ignacio Vazquez-Abrams · Jan 20, 2010

I would not combine the two per se; calls into Django would happen synchronously which means that Twisted's event loop would be blocked. Better to treat the Twisted process as a standalone app using Django and to have a classic web server handle the Django app.

You are not likely to find a shared host that will allow you to run a Twisted app, so I would go the VPS route.