随笔分类 -  日常BUG

摘要:由于某些原因,国内访问Github有时会异常缓慢,通过修改系统hosts文件的办法,绕过国内dns解析,直接访问GitHub的CDN节点,从而达到加速的目的。该方法也可加速其他因为CDN被屏蔽导致访问慢的网站。实现在本地host文件中添加映射,步骤如下:1、... 阅读全文
posted @ 2019-02-21 23:53 onefine 阅读(3947) 评论(0) 推荐(0)
摘要:问题描述:Django项目中,多个app下有同名DTL模板,引用模板不正确的问题。环境:>python --versionPython 3.7.1>python -m django --version2.1.4目录结构(部分文件已省略):│ manage.... 阅读全文
posted @ 2019-02-15 23:40 onefine 阅读(526) 评论(0) 推荐(0)
摘要:当启动Django自带的服务器时,报错2059:...MySQLdb._exceptions.OperationalError: (2059, )...查看了一下mysql版本:mysql> select version();+-----------+| v... 阅读全文
posted @ 2019-02-06 10:54 onefine 阅读(1195) 评论(0) 推荐(0)
摘要:环境:[root@localhost python3]# cat /etc/redhat-releaseCentOS Linux release 7.5.1804 (Core) [root@localhost python3]# 1、下载Python方式一:... 阅读全文
posted @ 2019-01-29 20:04 onefine 阅读(2674) 评论(2) 推荐(0)
摘要:操作环境:SecureCRT 8.5+Ubuntu 18.10Ubuntu终端设置:step1:sudo apt-get install openssh-serverstep2:vim /etc/ssh/sshd_config找到#PermitRootLog... 阅读全文
posted @ 2019-01-25 18:15 onefine 阅读(831) 评论(0) 推荐(0)