2019年7月10日

windows 数据备份

摘要: xcopy 数据目录 备份目录 /e /c /q /h /r /y at 00:00 /every:M,T,W,Th,F,S,Su d:\批处理文件名 阅读全文

posted @ 2019-07-10 11:24 卓达 阅读(273) 评论(1) 推荐(0) 编辑

2019年6月29日

dict sorted by value. 字典根据 值排序

摘要: d = [('a', 24), ('g', 52), ('i', 12)] print(sorted(d),key = lambda x:x[1]) sorted (字典,排序的依据: 字典[key]) 阅读全文

posted @ 2019-06-29 08:57 卓达 阅读(317) 评论(0) 推荐(0) 编辑

2019年6月20日

视频监控录像机默认端口 34567 修改为37420

摘要: 视频监控录像机默认端口 34567 修改为37420 http:// cms 阅读全文

posted @ 2019-06-20 12:58 卓达 阅读(1241) 评论(0) 推荐(0) 编辑

2019年6月18日

doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

摘要: 在settings.py中增加 问题就解决了。什么原因。——不知道。。 具体请看: https://stackoverflow.com/questions/35388637/runtimeerror-model-class-django-contrib-sites-models-site-doesn 阅读全文

posted @ 2019-06-18 10:21 卓达 阅读(2854) 评论(0) 推荐(0) 编辑

2019年6月13日

django 搜索引擎 Elasticsearch 安装使用

摘要: 1.使用docker安装elasticsearch a.获取镜像 b.将百度云盘中的elasticsearch.zip文件传到虚拟机中的家目录,然后unzip解压。在虚拟机中的elasticsearch/config/elasticsearch.yml第54行,更改ip地址为0.0.0.0,端口改为 阅读全文

posted @ 2019-06-13 10:45 卓达 阅读(1131) 评论(0) 推荐(0) 编辑

2019年6月3日

EditPlus使用技巧

摘要: 1.p{$$}*10 按ctrl+E 自动 填写10行 P标签. $表示数字,$$表示2位数... p{b$}*10 2.cltr +j 复制当前行. 3.自动填充开启. 锚点定义 html 锚点 <p id="targ1"> 定义 id名为targ1 的锚点.. <a href="#targ1"> 阅读全文

posted @ 2019-06-03 19:45 卓达 阅读(522) 评论(0) 推荐(0) 编辑

<a>标签的target 属性 全局作用

摘要: 局部(或全局)设置<a>标签的target属性 对于超链接<a>标签,target属性的设置是比较关键的,在不同的用户场景下选用适合的新页面载入方式,可以大大的提高访客的体验感。我们一般对target的设置可以挨个来,但如果我们需要在局部或者全局对所有的<a>标签target属性进行设置,那要怎么做 阅读全文

posted @ 2019-06-03 18:36 卓达 阅读(380) 评论(0) 推荐(0) 编辑

2019年5月27日

django 新项目

摘要: 1.创建虚拟环境 mkvirtualenv - p python3 pip list 查询已经安装的包 pip install django==2.1.7 安装包 指定版本的包 1.1 删除虚拟环境、 rmvirtualenv 虚拟环境名 rmvirtualenv site1 1.2 workon 阅读全文

posted @ 2019-05-27 18:29 卓达 阅读(115) 评论(0) 推荐(0) 编辑

django settings.py

摘要: """Django settings for mysite project.Generated by 'django-admin startproject' using Django 2.1.7.For more information on this file, seehttps://docs.d 阅读全文

posted @ 2019-05-27 11:51 卓达 阅读(314) 评论(2) 推荐(0) 编辑

ubuntu python3虚拟环境

摘要: mkvirtualenv flow_chart -p /usr/bin/python3.6 # 命令 环境名 -p python所在路径 pip install -r request.txt # 导入安装环境 pip freeze >> /home/pyvip/request.txt #导出 环境。 阅读全文

posted @ 2019-05-27 09:50 卓达 阅读(288) 评论(0) 推荐(0) 编辑

导航