上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: 1.首先在views 中 修改 阅读全文
posted @ 2019-05-23 17:41 yanhuidj 阅读(119) 评论(1) 推荐(0) 编辑
摘要: 1.先確定 導入的路徑是否正確 2.確定html 頁面可以正常訪問 3.在項目的settings中 鍵入以下内容,重啓即可 阅读全文
posted @ 2019-05-23 15:02 yanhuidj 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1. Python的每个新版本都会增加一些新的功能,或者对原来的功能作一些改动。有些改动是不兼容旧版本的,也就是在当前版本运行正常的代码,到下一个版本运行就可能不正常了。 从Python 2.7到Python 3.x就有不兼容的一些改动,比如2.x里的字符串用'xxx'表示str,Unicode字符 阅读全文
posted @ 2019-05-22 14:23 yanhuidj 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.cmd 下 ssh -p 5203liuyan@39.107.95... 证明登录成功 2.使用xshell 登录,当日主机地址,需要运维提供下 1. 2. 【这里记得输入你的用户名】 3. 4.【测试连接】 阅读全文
posted @ 2019-05-17 16:26 yanhuidj 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 解决: 因为函数没有使用self 阅读全文
posted @ 2019-05-08 16:38 yanhuidj 阅读(3679) 评论(0) 推荐(0) 编辑
摘要: 解决: 在settings.py 把 STATICFILES_DIRS=(os.path.join(BASE_DIR,'static')) 改为 STATICFILES_DIRS=[(os.path.join(BASE_DIR,'static'))] 修改成元组没有生效,就试了下修改成功列表 阅读全文
posted @ 2019-05-08 11:08 yanhuidj 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 【修改users-models模块】 1.如果这样不生效 2.就换成这种 阅读全文
posted @ 2019-04-28 18:25 yanhuidj 阅读(412) 评论(1) 推荐(0) 编辑
摘要: 1.访问github :https://github.com/sshwsfc/xadmin 2.新建README.rst 并替换到下载的zip文件中 3.cmd下,进入虚拟环境使用pip install +下载的xadmin文件夹 即可 阅读全文
posted @ 2019-04-28 10:34 yanhuidj 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 【报错内容】: IntegrityError at /admin/users/userprofile/add/ (1452, 'Cannot add or update a child row: a foreign key constraint fails (`mxonline1`.`django_ 阅读全文
posted @ 2019-04-28 09:39 yanhuidj 阅读(199) 评论(1) 推荐(0) 编辑
摘要: 1. 0 表示stdin标准输入 2. 1 表示stdout标准输出 3. 2表示stderr标准错误 意思是:把标准错误重定向到标准输出? 阅读全文
posted @ 2019-03-16 11:42 yanhuidj 阅读(251) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页