38161-vm/core/context_processors.py
2026-02-04 00:23:49 +00:00

17 lines
596 B
Python

import os
import time
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", ""),
"whatsapp_number": "+5359177041",
"whatsapp_group_link": "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY",
"radio_url": "https://play.radioking.io/lili-record-s-radio",
# Used for cache-busting static assets
"deployment_timestamp": int(time.time()),
}