38156-vm/core/context_processors.py
Konrad du Plessis 370b0e9815 Add minimal section headers to all core/ files and CLAUDE.md coding style
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 00:07:26 +02:00

17 lines
441 B
Python

import os
import time
# === TEMPLATE CONTEXT PROCESSORS ===
def project_context(request):
"""
Adds project-specific environment variables to the template context globally.
"""
return {
"project_description": os.getenv("PROJECT_DESCRIPTION", ""),
"project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
# Used for cache-busting static assets
"deployment_timestamp": int(time.time()),
}