To use it you have to add some options to your settings.py file:
- Add 'offline_messages' to INSTALLED_APPS
- Set MESSAGE_STORAGE to 'offline_messages.storage.OfflineStorageEngine'
If you want to create a message, just type:
from offline_messages.utils import create_offline_message
user = User.objects.get(username='dbudashny')
create_offline_message(user, "This is a message")
How do you query these comments when the use next logs in, and does your system keep a complete record of all messages received?
ReplyDelete