上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: 问题: pip install uwsgi 之后,运行uwsgi 报错:[uwsgi: command not found] 解决方案:建立软链接 ln -s /usr/local/python3/bin/uwsgi /usr/bin/uwsgi 阅读全文
posted @ 2019-01-04 09:46 蛋尼 阅读(8761) 评论(0) 推荐(1) 编辑
摘要: 直接参考这篇,很详细:https://www.cnblogs.com/changqing8023/p/9639769.html 补充一点:日志文件打开时,中文乱码,要在handler中设置编码格式,'encoding': 'utf-8' 阅读全文
posted @ 2019-01-03 10:19 蛋尼 阅读(211) 评论(1) 推荐(0) 编辑
摘要: 实现功能:新增/删除 学生 阅读全文
posted @ 2018-12-30 22:38 蛋尼 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 记录在2018年最后一个工作日: Linux环境坑爹得要死,环境本身有python2和python3.7两个版本;安装django2的时候,发现默认是python2;把python软连接到python3.7,然后开始各种奇葩报错。。。。。。接着开始2天的草泥马寻找问题之路。 最后怎么解决的?重新下载 阅读全文
posted @ 2018-12-29 22:53 蛋尼 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 直接用python命令,打印sys的path即可: 阅读全文
posted @ 2018-12-29 15:00 蛋尼 阅读(13618) 评论(0) 推荐(0) 编辑
摘要: 1. 只读的全局变量 对于只读的全局变量,知道的有以下两种使用方式: 1)global.js 模块中定义;其他模块import后再使用即可 1.1)定义 1.2)引用 2)gobal.js 模块中定义,并绑定到 prototype,其他任何Vue实例可直接引用 this.$xxxx 2.1)定义,绑 阅读全文
posted @ 2018-12-28 14:30 蛋尼 阅读(20147) 评论(0) 推荐(0) 编辑
摘要: 已经是json格式数据的,直接用标签 <pre></pre>展示。 参考:https://www.jianshu.com/p/d98f58267e40 阅读全文
posted @ 2018-12-27 18:46 蛋尼 阅读(2710) 评论(0) 推荐(0) 编辑
摘要: function getCookie(cname) { let name = cname + "="; let ca = document.cookie.split(';'); for (let i = 0; i < ca.length; i++) { let c = ca[i].trim(); i 阅读全文
posted @ 2018-12-26 18:06 蛋尼 阅读(113) 评论(0) 推荐(0) 编辑
摘要: collapse用处还是挺多的。 使用方法先看看bootstrap官方文档:https://v3.bootcss.com/javascript/#collapse You can use a link with the href attribute, or a button with the dat 阅读全文
posted @ 2018-12-14 14:50 蛋尼 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 定义的form类如下: 1 常用的类型有:ChoiceField IntegerField 等 2 可以用widget指定窗口部件:widget=widgets.TextInput 等 3 widgets.attr 设置标签属性:attrs={'size': '30'} 参考: django-for 阅读全文
posted @ 2018-12-12 14:25 蛋尼 阅读(221) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页