I'm going to make AJAX instant messenger app for my Django project and I would like to know if I am thinking in right direction and if not - what am I missing.
So in my mind the problem is not so hard actually, rough plan is:
- Make MessageModel that has fields like:
Sender, Receiver, MsgContent, Date - Create a view + template for POSTing new message(creating new entry in the database)
- Monitor POST method of the sender. Or utilize GET somehow, technical details for this step is very vague in my mind, but the idea that we just use AJAX and that's it.
- Outputting messages
To make messenger multi-user(group talks) we can simply use some kind of list in Receiver field.
In theory it looks quite simple, but I feel like something is really wrong with my understanding of it. Do I need something more than MessageModel and AJAX? I don't have much experience with real-time application, just made simple AJAX search-engine through the site and that's basically it.
Any help, links, names of useful tools is highly appreciated.