add problemset

This commit is contained in:
2025-10-22 18:47:40 +08:00
parent 9235b111c0
commit 07aaff69f2
16 changed files with 1404 additions and 4 deletions

View File

@@ -6,8 +6,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"HOST": "150.158.29.156",
"PORT": "5445",
"HOST": "10.13.114.114",
"PORT": "5433",
"NAME": "onlinejudge",
"USER": "onlinejudge",
"PASSWORD": "onlinejudge",
@@ -15,8 +15,8 @@ DATABASES = {
}
REDIS_CONF = {
"host": "150.158.29.156",
"port": 5446,
"host": "10.13.114.114",
"port": 6379,
}

View File

@@ -59,6 +59,7 @@ LOCAL_APPS = [
"tutorial",
"ai",
"flowchart",
"problemset",
]
INSTALLED_APPS = VENDOR_APPS + LOCAL_APPS

View File

@@ -21,4 +21,6 @@ urlpatterns = [
path("api/admin/", include("tutorial.urls.admin")),
path("api/", include("ai.urls.oj")),
path("api/", include("flowchart.urls.oj")),
path("api/", include("problemset.urls.oj")),
path("api/admin/", include("problemset.urls.admin")),
]