Using ajax you can make a chat, but you will have to send ajax requests to check if there are new messages to show - you can't make a real time application unless you use Java applet or Flash. However you can also use comet and make HTML/JS application real time. In Python we can use Orbited event driven comet server and django as the application "base". Start with installing orbited and pyorbited