Answer the question
In order to leave comments, you need to log in
Django - How to make views for the entire site?
Might be a stupid question, but. )
There is an application "Private messages" in which the user's new personal messages are counted.
For example, roughly speaking
views.py
def massages():
...
# New messages (number)
new_m = massages.count()
...
How to make these new messages appear (work) throughout the site (project), and not only in this application?
Do I need to write something in settings?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question