All posts by ht

linux版WPS系统缺失字体的解决办法

  • 从网上找到或直接到windows/fonts文件里拷贝wingdings、wingdings 2、wingdings 3、Webdings、MT Extra这些字体。
  •  进入主文件夹,按Ctrl+h键(显示隐藏文件),查看有没有.fonts文件夹,如果没有就创建一个。
  • 把wingdings、wingdings 2、wingdings 3、Webdings、MT Extra这些字体,复制到主文件夹下的.fonts文件夹里。

修改hosts文件上google

百度搜索最新google-hosts,并修改hosts文件内容

hosts所在文件夹:

  • Windows 系统hosts位于 C:\Windows\System32\drivers\etc\hosts
  • Android(安卓)系统hosts位于 /system/etc/hosts
  • Mac(苹果电脑)系统hosts跟Linux一样位于 /etc/hosts
  • iPhone(iOS)系统hosts跟Linux Mac一样位于 /etc/hosts
  • Linux系统hosts位于 /etc/hosts

 

django admin You don't have permission to edit anything ?

1, 在urls.py 文件中加入一行 admin.autodiscover()
admin.autodiscover() 是什么作用呢?
查看源码 分析到作用是把 settings.INSTALLED_APPS这个节点中的配置动态的加入到程序中来。
2,在models.py文件中将数据表注册到admin里,
from django.contrib import admin

admin.site.register(modelname)
 

Raspberry Pi 软件源

/etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.shu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi 

升级win10后IE浏览器无法上网的解决办法

方法一
然后按住键盘组合键win+x,选择命令提示符(管理员),在提示框输入netsh winsock reset,回车
重置成功,重启你的电脑,即可
方法二
打开网络共享中心-当前网络连接属性-选择协议,点击安装
选择协议-添加
选择可靠多播协议-确定
安装好后重启计算机即可解决