How does Django calculate the healthy running time of a project?

problem description

the company asked for some information about the project. Among them, the healthy running time of the project, I do not know how to solve it.

the environmental background of the problems and what methods you have tried

the Django project has been deployed on the server with Apache.
healthy running time, which, according to the relevant documentation, is generally the difference between the current time and the initial login time; both times are easy to obtain.
if the server is restarted, the healthy runtime must be recalculated. The problem now is that it is not possible to detect whether the project has been restarted in the project.
that is, the time information related to the start and end of django or apache cannot be read in the program code.
has tried to read apache"s log file, but it is not feasible to filter through text content.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

I would like to ask all of you, is there any good way or idea to detect whether the project has started or ended? Thank you

Aug.14,2021

Server run time according to the uptime command
apache server, sorry not familiar
django prints a log log to record the startup of the project during django initialization


recommended log or operation and maintenance system

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54d5e-45301.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54d5e-45301.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?