37956-vm/core/views.py
2026-01-29 21:16:54 +00:00

13 lines
348 B
Python

from django.shortcuts import render
from .models import Station
import time
def home(request):
stations = Station.objects.filter(is_active=True)
context = {
"stations": stations,
"project_name": "Lili Record's",
"deployment_timestamp": int(time.time()),
}
return render(request, "core/index.html", context)