06 2024 档案

摘要:from rest_framework_simplejwt.authentication import JWTAuthentication from rest_framework.permissions import IsAuthenticated, DjangoModelPermissions c 阅读全文
posted @ 2024-06-21 13:22 wellplayed 阅读(13) 评论(0) 推荐(0) 编辑
摘要:视图层 from rest_framework_simplejwt.tokens import AccessToken from django.middleware.csrf import get_token from django.contrib.auth import login class J 阅读全文
posted @ 2024-06-21 10:28 wellplayed 阅读(28) 评论(0) 推荐(0) 编辑
摘要:import smtplib from email.mime.text import MIMEText from email.header import Header from email.utils import formataddr from utils.common_logger import 阅读全文
posted @ 2024-06-21 09:41 wellplayed 阅读(10) 评论(0) 推荐(0) 编辑
摘要:import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; import './css/global.css'; import axios from 'axios'; // 阅读全文
posted @ 2024-06-20 13:57 wellplayed 阅读(96) 评论(0) 推荐(0) 编辑
摘要:MySQL自带了一个命令行工具mysqldump,可以方便的将数据导出至文件 使用案例 mysqldump -u root -p 数据库名称 > xxx.sql # 再输入密码即可 # 增加过滤条件 mysqldump -u root -p 数据库名称 表名称 --where="id>1000" > 阅读全文
posted @ 2024-06-17 11:51 wellplayed 阅读(15) 评论(0) 推荐(0) 编辑
摘要:首先需要确保安装依赖 pip install celery redis eventlet 在创建的app文件内添加tasks.py # app01/tasks.py from celery import shared_task @shared_task def simple_task(): prin 阅读全文
posted @ 2024-06-13 17:24 wellplayed 阅读(14) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示