首页
博客
论坛
联系我们
协同工具
登录
文章
django admin更改管理员用户的密码
django admin更改管理员用户的密码 一:shell环境修改 1、进入shell环境 python manage . py shell 2、导入认证模型 from django . contrib . auth . models import User use...
张先森
—
一月 2021
— 2063 浏览
django
django格式化查询返回的日期格式
Django对查询返回结果中的时间字段进行格式化定制 class UserSubmitWorkHandleLogSerializer(serializers.ModelSerializer): create_date = serializers.DateTimeField(format='%Y-...
张先森
—
十二月 2020
— 699 浏览
django
MySQL 中与if相关的条件查询
表: username 测试数据: 备注:演示数据表创建及数据请从下面链接处下载: None [1] 表结构及数据创建SQL文件 mysql if条件查询 1、IF(expr1,expr2,expr3) 如果 expr1 是TRUE (expr1 <> 0 and expr1 <>...
张先森
—
十一月 2019
— 422 浏览
mysql
mysql基本操作(3)
高级数据过滤 * 1、组合 where 字句 select vend_id, prod_id, prod_price,prod_name from Products where vend_id= 'DLL01' and prod_price <= 4 ; 2、or 操作符 or 前后的...
张先森
—
十月 2019
— 402 浏览
mysql
mysql基本操作(2)
过滤数据 * 1、使用where字句 select prod_name, prod_price from Products where prod_price=3.49; 在where字句和order by 同时使用时,order by 应位于 where 之后!!! 2、where字句操作...
张先森
—
十月 2019
— 292 浏览
mysql
mysql基本操作(1)
1、去重 distinct select distinct column_name from table_name; 注意: distinct 关键字作用于所有的列,不仅仅是跟在其后面的那一列。 例如:你指定 select distinct vend_id,prod_price,因为指...
张先森
—
十月 2019
— 331 浏览
mysql
nginx配置404页面
需求:当后台服务返回的 http 状态码为404时,通过 nginx 自定义404页面。 方法:对在相应的 nginx 配置文件做如下配置: proxy_intercept_errors on; error_page 404 403 /404.html; location ...
张先森
—
十月 2019
— 265 浏览
404
nginx
git新手入门
GIT * 1、从代码仓库拉取代码 git clone 地址 * 2、切换到已有分支/创建并切换到该分支 git checkout 分支名git checkout -b 分支名 * 3、查看代码有无修改 git status * 4、提交修改代码 git add 你想提交的...
张先森
—
十月 2019
— 314 浏览
git
使用screen后台挂起服务
screen 相关操作 1、查看有多少 screen screen -ls 2、进入某个 screen screen -r screen的id或者名字 3、后台挂起 screen ① ctrl + a ② d 4、新建一个 screen screen -S 名字...
张先森
—
十月 2019
— 950 浏览
linux
screen
关于我们
当
新的访客
通过你的
博客文章
、在谷歌引用找到你的网站 在这里写下小段文字。
保持最新:
退订
订阅
我们的博客
文章
随笔
Linux下工具安装
面试
小工具
Shell
Go
激活工具
标签
404
crontab
django
docker
git
linux
mysql
nginx
python
rabbitmq
redis
screen
thread
tmux
typora
unittest
virtualenv
单元测试
树莓派
算法
归档
2022
十月
1
2021
二月
1
一月
2
2020
十二月
2
十一月
1
八月
1
六月
1
五月
1
2019
十二月
2
十一月
1
十月
15