django问题汇总
摘要:1、CSRF verification failed. Request aborted. 解决:在提交前form的页面上添加 {% csrf_token %}
阅读全文
posted @
2022-01-28 14:02
bruce.sharp
阅读(37)
推荐(0)
常用shell命令
摘要:1、查看相关进程 ps -ef |grep xxx |grep -v grep |wc -l grep -v:反向选择 2、kill相关应用 ps -ef |grep xxx |grep -v grep |print '{$2}' |xargs -i kill -9 {} xargs -i 用打印出
阅读全文
posted @
2022-01-25 15:42
bruce.sharp
阅读(22)
推荐(0)
Django笔记1
摘要:1、html语法使用 {{json中的名称}} {% python语句%} 》 eg:{% for i in list %} <tr>...... {% endfor %} 2、命令创建django的application 》 python manage.py startapp app名字3、路径的
阅读全文
posted @
2022-01-21 15:05
bruce.sharp
阅读(39)
推荐(0)
python的框架1-swgi使用
摘要:内置web服务器例子: from wsgiref.simple_server import make_serverdef f1(): return [b'<h1>book</h1>']def f2(): return [b'<h1>test</h1>']def f3(): return [b'<h1
阅读全文
posted @
2022-01-20 13:37
bruce.sharp
阅读(150)
推荐(0)
git的安装和使用
摘要:下载地址:https://git-scm.com/download 1、流程图 设置用户信息: git config --global user.name "itcast" 用户名 git config --global user.email "zhouming@itcast.cn" 邮箱 查看信息
阅读全文
posted @
2022-01-12 09:05
bruce.sharp
阅读(244)
推荐(0)