会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小虾米爱吃鱼
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
14
15
16
17
18
19
20
21
22
···
26
下一页
2020年12月8日
时间过滤
摘要: 指定时间内所得数据 # time代表北京时间,timezone代表jango时间 from django.utils import timezone from user.models import * now=timezone.now() #现在时间 start_time=now-timezone.
阅读全文
posted @ 2020-12-08 16:53 小虾米爱吃鱼
阅读(146)
评论(0)
推荐(0)
2020年12月7日
celery在项目中使用和Django中使用
摘要: 1.1 为什么有这篇博客 1.博客说明 1.在做celery异步任务和定时任务时,有些人使用django-celery+django-redis+celery+redis+django-celery-beat实现 2.但是这种实现方法和django结合过于紧密,不利于分布式部署 3.而且不同版本相结
阅读全文
posted @ 2020-12-07 21:38 小虾米爱吃鱼
阅读(178)
评论(0)
推荐(0)
2020年12月5日
数据库之表操作,数据操作
摘要: 注意的几点: 1.如果你在cmd中书命令的时候,输入错了就用\c跳出 2.\s查看配置信息 一、操作文件夹(库) 增:create database db1 charset utf8; 删:drop database db1; 改:alter database db1 charset gbk; 查:
阅读全文
posted @ 2020-12-05 20:53 小虾米爱吃鱼
阅读(141)
评论(0)
推荐(0)
localStorage页面传值
摘要: 1.在需要传值页面储存 //对象 let numberarr = { num1: 1, num2: 2, num3: 3 }; //字符串 let str = 'heoll'; localStorage.setItem('numberarr ', JSON.stringify(numberarr )
阅读全文
posted @ 2020-12-05 11:30 小虾米爱吃鱼
阅读(207)
评论(0)
推荐(0)
2020年12月4日
无法使用提供的凭据登录 Unable to log in with provided credentials.
摘要: 问题解决 注册账号 请查看 https://www.cnblogs.com/xiaoxiamiaichiyu/p/13773051.html
阅读全文
posted @ 2020-12-04 18:08 小虾米爱吃鱼
阅读(1319)
评论(0)
推荐(0)
2020年12月3日
序列化自定义字段
摘要: 表设计 #审批流 class ApproveConf(models.Model): # permission_classers=(IsAu) approve_type_chice= ( ('1', "指定人员审批"), ('2', "角色组审批"), ) flowconf=models.Foreig
阅读全文
posted @ 2020-12-03 19:19 小虾米爱吃鱼
阅读(181)
评论(0)
推荐(0)
分页封装
摘要: 封装分页方法 直接调用函数可使用 # -*- coding: utf-8 -*- from rest_framework.pagination import PageNumberPagination from django.conf import settings from django.core.
阅读全文
posted @ 2020-12-03 11:57 小虾米爱吃鱼
阅读(98)
评论(0)
推荐(0)
2020年11月27日
python后端继承序列化,不同访问形式返回不同结果
摘要: http://192.168.56.100:8888/workorder/flowconf/ http://192.168.56.100:8888/workorder/flowconf/1/ 1. 表设计 from django.db import models # Create your mode
阅读全文
posted @ 2020-11-27 20:53 小虾米爱吃鱼
阅读(138)
评论(0)
推荐(0)
解决vue前端不显示自定义字段
摘要: 前端添加代码 <span slot="roles" slot-scope="roles"> <a-tag v-for="role in roles" :key="role.id" :color="role.role__name 'loser' ? 'volcano' : role.role__nam
阅读全文
posted @ 2020-11-27 17:20 小虾米爱吃鱼
阅读(1103)
评论(0)
推荐(0)
Vue 获取后端多对多关联表信息
摘要: 前端给后端表添加一个自定义字段 class UserViewSet(viewsets.ModelViewSet): """ 完成产品的增删改查 """ queryset = User.objects.all() serializer_class = UserSerializer # 优先使用 get
阅读全文
posted @ 2020-11-27 08:28 小虾米爱吃鱼
阅读(700)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
26
下一页
公告