feat: added core app

This commit is contained in:
ITQ
2025-02-16 12:40:58 +03:00
parent 2aa93a2b51
commit cb0a73891c
3 changed files with 61 additions and 0 deletions
@@ -0,0 +1,13 @@
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)