删除无用代码并且新增流程图相关内容
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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()),
|
||||
]
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ LOCAL_APPS = [
|
||||
"comment",
|
||||
"tutorial",
|
||||
"ai",
|
||||
"flowchart",
|
||||
]
|
||||
|
||||
INSTALLED_APPS = VENDOR_APPS + LOCAL_APPS
|
||||
|
||||
@@ -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")),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user