删除无用代码并且新增流程图相关内容

This commit is contained in:
2025-10-11 23:29:56 +08:00
parent 0f3f2d256f
commit 4168d41a16
33 changed files with 776 additions and 722 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": "10.13.114.114",
"PORT": "5433",
"HOST": "150.158.29.156",
"PORT": "5432",
"NAME": "onlinejudge",
"USER": "onlinejudge",
"PASSWORD": "onlinejudge",
@@ -15,7 +15,7 @@ DATABASES = {
}
REDIS_CONF = {
"host": "10.13.114.114",
"host": "150.158.29.156",
"port": 6379,
}

View File

@@ -5,9 +5,11 @@ WebSocket URL Configuration for oj project.
from django.urls import path
from submission.consumers import SubmissionConsumer
from conf.consumers import ConfigConsumer
from flowchart.consumers import FlowchartConsumer
websocket_urlpatterns = [
path("ws/submission/", SubmissionConsumer.as_asgi()),
path("ws/config/", ConfigConsumer.as_asgi()),
path("ws/flowchart/", FlowchartConsumer.as_asgi()),
]

View File

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

View File

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