Files
AdNova/services/backend/apps/core/apps.py
T
2025-03-07 19:32:09 +03:00

14 lines
292 B
Python

import contextlib
from django.apps import AppConfig
from django.core.cache import cache
class CoreConfig(AppConfig):
name = "apps.core"
label = "core"
def ready(self) -> None:
with contextlib.suppress(Exception):
cache.add("current_date", 0, timeout=None)