I created a custom context processor which returns "unread_messages_count".Now when I'm updating it on the template using:
var update_message_count = setInterval(function(){
$('a#check_messages').text('{{ unread_messages_count }}');
console.log('{{ unread_messages_count }}');
},1000);
I'm not getting update count of unread messages.But when I reload the page manually, I get updated count. So, I guess that "unread_messages_count" doesn't refresh on it's own. Right?