随笔分类 -  实验楼课程

摘要:#具体课程章节页面 ##1.获取具体课程章节 信息 ###1.1 路由地址 http://192.168.56.100:8888/course/course/2/ 返回效果展示 { "id": 2, "chapters": [ { "id": 1, "sections": [ { "id": 1, 阅读全文
posted @ 2020-11-07 17:07 小王小王ii 阅读(108) 评论(0) 推荐(0)
摘要:#课程主页面接口对应页面效果 ##1.课程类别接口开发 ###1.1 course/urls.py 添加路由 from django.urls import path,re_path from . import views from rest_framework.routers import Def 阅读全文
posted @ 2020-11-07 16:49 小王小王ii 阅读(89) 评论(0) 推荐(0)
摘要:#syl/utils/MyBaseModel.py增加抽象基类 from django.db import models class Base(models.Model): create_time = models.DateTimeField('创建时间', auto_now_add=True, n 阅读全文
posted @ 2020-11-07 16:16 小王小王ii 阅读(215) 评论(0) 推荐(0)