摘要: query_set() 根据字典查询数据库,而不是models.phones.object.filter(phone="xxx") # 一种根据多个参数查询数据库的方法 # 理想状态下,我可以传入多个参数,直接查询 # 原文:https://docs.djangoproject.com/en/3.0 阅读全文
posted @ 2021-08-30 14:20 lisicn 阅读(54) 评论(0) 推荐(0)
摘要: %: curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py %: python get-pip.py 得到大致如下内容: pc@pcMacBook-Pro Documents % python get-pip.py DEPRE 阅读全文
posted @ 2021-07-27 21:37 lisicn 阅读(3292) 评论(0) 推荐(0)
摘要: 设定后台系统名 admin.AdminSite.site_header = '医院后台' 添加自定义跳转按钮,添加新的列 #整体内容参考https://simpleui.72wo.com/docs/simpleui/quick.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E6% 阅读全文
posted @ 2021-06-30 13:01 lisicn 阅读(186) 评论(0) 推荐(0)
摘要: 一些源 20210628阿里云目前源限速(4M左右带宽,其他均在10M以上) 阿里云 https://mirrors.aliyun.com/pypi/simple/ 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科学技术大学 https://pypi.mi 阅读全文
posted @ 2021-06-28 13:56 lisicn 阅读(344) 评论(0) 推荐(0)
摘要: 不幸的是,通过DOCKER命令无法更改现有 RUNNING 容器的端口映射(从主机到容器的转发端口)! 因此,在镜像运行的时候或启动端口的时候,要谨慎操作。 通过修改配置文件修改端口 停止容器 docker stop <contanier ID> 停止所有: docker stop $(docker 阅读全文
posted @ 2021-06-21 14:30 lisicn 阅读(1385) 评论(0) 推荐(0)
摘要: 基本架构: ​ nginx >> supervisor >> Daphne >> websocket 配置 安装daphne #pip install channels #安装结束后会在当前虚拟环境下产生daphne 配置django asgi 配置asgi.py文件(假设你已经做好了websock 阅读全文
posted @ 2021-06-15 09:50 lisicn 阅读(188) 评论(0) 推荐(0)
摘要: 三、添加标记 案例一,添加船标并绘制行驶轨迹: var myMap = L.map('mapMain').setView([37.55, 122.08], 10); /*定义标记*/ var boatIcon = L.icon({ iconUrl: "{% static 'http_app/inde 阅读全文
posted @ 2021-06-11 17:48 lisicn 阅读(2726) 评论(0) 推荐(0)
摘要: 加载地图前的设定: var map_global_settings = { zoomControl: false, //关闭左上角放大缩小 doubleClickZoom: false, // 关闭双击放大 }; 添加一些控件: /*右下角添加文本内容*/ L.control.attribution 阅读全文
posted @ 2021-06-11 11:30 lisicn 阅读(175) 评论(0) 推荐(0)
摘要: 案例一,使用在线地图服务: <!DOCTYPE html> <html lang="zh-Hans-CN"> <head> <meta charset="UTF-8"> <title>地图测试</title> <link rel="stylesheet" href="./static/leaflet 阅读全文
posted @ 2021-06-11 10:57 lisicn 阅读(234) 评论(0) 推荐(0)
摘要: 个人邮箱 STMP服务器:stmp.qq.com 账号密码:生成授权码 企业邮箱 STMP:服务器:smtp.exmail.qq.com 账号密码:管理员的账号与密码(非授权码) POP3/SMTP与IMAP/SMTP的区别 侧面理解:POP向本地更新,本地不会向上同步。IMAP与本地双向同步 PO 阅读全文
posted @ 2021-06-07 11:10 lisicn 阅读(831) 评论(0) 推荐(0)