mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 14:27:10 +00:00
init: added backend boilerplate
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user