摘要: 文章列表页: 获取文章列表说到底也是从数据库查数据,因此理应先根据前端要求的格式编写一个组装数据的方法, 前端要求的数据格式: {‘code’:200, ‘data’:{‘nickname’:’linuxTang’, ‘topics’:[{‘id’:1, ‘title’:’A’, ‘category 阅读全文
posted @ 2021-12-16 21:59 linuxTang 阅读(60) 评论(0) 推荐(0)
摘要: 我再编写获取文章列表路基的时候,访问接口地址报错(127.0.0.1:8000/v1/topics/qq66907360) TypeError at /v1/topics/qq66907360 Object of type UserProfile is not JSON serializable R 阅读全文
posted @ 2021-12-16 18:20 linuxTang 阅读(884) 评论(0) 推荐(0)