摘要: Internal Server Error: /demo/machineinfo.htmlTraceback (most recent call last): File "C:\Python27\lib\site-packages\django\core\handlers\exception.py" 阅读全文
posted @ 2018-08-31 17:26 monster_ygs 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 1. 创建用户及访问目录 mkdir -p /home/user/testuser 创建用户目录 useradd testuser -d /home/user/testuser -M 创建testuser用户 echo "123" |passwd --stdin testuser 给testuser 阅读全文
posted @ 2018-08-31 13:47 monster_ygs 阅读(2772) 评论(0) 推荐(0) 编辑
摘要: 通过django自带的类库,来加密解密很方便,下面来简单介绍下; 导入包: from django.contrib.auth.hashers import make_password, check_password make_password 是生成密码 check_password是效验密码 ma 阅读全文
posted @ 2018-08-31 13:33 monster_ygs 阅读(2332) 评论(0) 推荐(0) 编辑