提交题目完成的排名

This commit is contained in:
2025-09-21 19:11:18 +08:00
parent 81663e705b
commit 24f1a0372e
8 changed files with 97 additions and 8 deletions

View File

@@ -6,14 +6,18 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
"ENGINE": "django.db.backends.postgresql",
"HOST": "10.13.114.114",
"PORT": "5433",
"NAME": "onlinejudge",
"USER": "onlinejudge",
"PASSWORD": "onlinejudge",
}
}
REDIS_CONF = {
"host": get_env("REDIS_HOST", "127.0.0.1"),
"port": get_env("REDIS_PORT", "6380"),
"host": "10.13.114.114",
"port": 6379,
}

View File

@@ -210,8 +210,7 @@ def redis_config(db):
}
if production_env:
CACHES = {"default": redis_config(db=1)}
CACHES = {"default": redis_config(db=1)}
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
SESSION_CACHE_ALIAS = "default"