Initialize Fonrey Django multi-tenant project skeleton

Set up the required directory layout, app scaffolding, core settings, templates, static assets, and Docker/Tailwind tooling to establish a standardized development baseline.
This commit is contained in:
2026-04-26 17:12:09 +08:00
commit 4aba6dfa77
170 changed files with 1220 additions and 0 deletions

13
core/cache.py Normal file
View File

@@ -0,0 +1,13 @@
from decouple import config as env
class RedisCache:
"""Redis 工具骨架。"""
@staticmethod
def get_client_url() -> str:
return env("REDIS_URL", default="redis://127.0.0.1:6379/0")
@staticmethod
def make_key(*parts: str) -> str:
return ":".join(["fonrey", *parts])