随笔分类 -  django

django web
基于rest_framework的ModelViewSet类编写登录视图和认证视图
摘要:背景:看了博主一抹浅笑的rest_framework认证模板,发现登录视图函数是基于APIView类封装。 优化:使用ModelViewSet类通过重写create方法编写登录函数。 阅读全文

posted @ 2024-01-17 11:51 凤毛麟角编程 阅读(264) 评论(1) 推荐(2)

将mysql的输出文本写回mysql
摘要:将mysql的输出文本写回mysql1 准备工作 1.1 环境准备 操作系统:Microsoft Windows 10 专业工作站版 软件版本:Python 3.9.6 第三方包: pip install pandas2.1.0 pip install pymysql1.1.0 pip install sqlalchemy==2.0. 阅读全文

posted @ 2023-12-11 23:49 凤毛麟角编程 阅读(182) 评论(0) 推荐(0)

Win10操作系统安装Python
摘要:1 Python解释器下载 1.1 安装环境 Windows 10 专业工作站版22H2 python-3.9.6-amd64.exe 1.2 下载地址 Python官网:https://www.python.org/ Python镜像:https://registry.npmmirror.com/ 阅读全文

posted @ 2023-12-10 11:03 凤毛麟角编程 阅读(2444) 评论(0) 推荐(1)

导航