I have a base template which is called every time a template is loaded with the {% extend 'base.html' %} tag
In that base file I have a navigation bar with a link to your inbox

I want to show after the link a number with how many unread messages you got, todo that I need to call a python function/view
Is this possible or should I go the javascript/jquery/ajax/... way?

btw: I think there should come a Django tab under web-development

Okay I think I've a workaround, but to do that I still need your help:

I have in every view a same line, this is not what the DRY-principle says
so I want to write that line once, and the other views should find that line automatic

do you know how?