logs-collector/logs_collector/collector/context_processors.py

17 lines
339 B
Python
Raw Normal View History

from django.conf import settings
from . import __author__
from .utils.helpers import get_mount_fs_info
def metadata(request):
return {
"version": settings.VERSION,
"environment": settings.ENVIRONMENT,
"author": __author__,
}
def storage_info(request):
return get_mount_fs_info(settings.MEDIA_ROOT)