Reputation: 495
can any body suggest me an idea about how can i create a chat interface between the friend list which i have created for my application.
actually a want to create a chat server. i have a friends list in my django model. if more then one person is online at the same time then they chat with one another. for this purpose do i have to create a socket or is there any other way to do it.
Thanks
Upvotes: 0
Views: 4057
Reputation: 25164
There are a couple pluggable apps for using Django as a chat server that you could use or at least use as a reference or starting point.
There are also these posts on using Django with Orbited to create a chat server.
Upvotes: 4
Reputation: 32070
A basic messaging service is fairly easy. Most of it will be through Javascript/AJAX. Simply store messages from users to users in the database, and have your AJAX poll the server for updates. Once the conversation is ended, delete them.
Upvotes: 0