mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
14 lines
292 B
Python
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)
|