django-notification

Facebook like notification updates using django signal or notification

霸气de小男生 提交于 2019-11-28 15:42:20
问题 How can i use django-notifications or django-signals to make something like facebook updates notification that shows in the user profile if any other user likes or posts comments on user's blog or posts? 回答1: For the activity feed, we use https://github.com/justquick/django-activity-stream Documentation: http://justquick.github.com/django-activity-stream/ For the js widget and live notifications, we use https://github.com/subsume/django-subscription yourlabs example, it depends on redis but

Django - How to track if a user is online/offline in realtime?

给你一囗甜甜゛ 提交于 2019-11-27 12:27:36
问题 I'm considering to use django-notifications and Web Sockets to send real-time notifications to iOS/Android and Web apps. So I'll probably use Django Channels . Can I use Django Channels to track online status of an user real-time? If yes then how I can achieve this without polling constantly the server? I'm looking for a best practice since I wasn't able to find any proper solution. UPDATE : What I have tried so far is the following approach: Using Django Channels, I implemented a WebSocket