D
D
Dev_nab2018-11-26 15:04:40
Django
Dev_nab, 2018-11-26 15:04:40

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

1 answer(s)
S
sim3x, 2018-11-26
@Dev_nab

https://toster.ru/answer?answer_id=1074088#answers...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question