This commit is contained in:
aqu415
2022-02-12 19:02:09 +08:00
parent dbb53469a9
commit c1d48e4789
3 changed files with 20 additions and 5 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
from server.views import *
from django.urls import path from django.urls import path
from server.views import *
urlpatterns = [ urlpatterns = [
path('list', list),
path('detail', detail),
path('jsmind_op', JsMindCallbackView.as_view()), path('jsmind_op', JsMindCallbackView.as_view()),
path('index', index)
] ]
+16 -3
View File
@@ -3,13 +3,26 @@ from rest_framework.views import APIView
from rest_framework.response import Response from rest_framework.response import Response
from server.models import * from server.models import *
from datetime import datetime as dt from datetime import datetime as dt
from rest_framework.generics import GenericAPIView
def index(request): def list(request):
""" """
跳转页面 列表界面
""" """
return render(request, "info.html") return render(request, "list.html")
def detail(request):
"""
详情页面
"""
return render(request, "detail.html")
class JsMindLogView(GenericAPIView):
def get(self, request):
pass
# Create your views here. # Create your views here.