添加教程的API

This commit is contained in:
2025-06-14 16:48:26 +08:00
parent 92adfd5415
commit 258e1474ee
11 changed files with 86 additions and 11 deletions

View File

@@ -6,12 +6,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"HOST": get_env("POSTGRES_HOST", "127.0.0.1"),
"PORT": get_env("POSTGRES_PORT", "5432"),
"NAME": get_env("POSTGRES_DB", "onlinejudge"),
"USER": get_env("POSTGRES_USER", "onlinejudge"),
"PASSWORD": get_env("POSTGRES_PASSWORD", "onlinejudge"),
"ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
}
}