Answer the question
In order to leave comments, you need to log in
How to make free space counter in base template?
Hello. I am making my own cloud, and I need to display the amount of free space the user has, the fact is that for each user I have my own folder on the disk. How can you pass the folder size to the base template without doing it in every view method?
Answer the question
In order to leave comments, you need to log in
For this, there are TEMPLATE CONTEXT PROCESSORS which are called for everything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question