1.打开软件和更新
2.浏览到更新选项卡 — 勾选提前释放出的更新 — 选择适用任何新版本
3.当以上选项配置好之后,使用如下命令来更新系统:
sudo apt-get update && sudo apt-get dist-upgrade
以上命令可能会花比较长的时间,这主要取决于你的网速和使用的源。
4.使用如下命令运行软件更新器, -d 参数会寻找版本升级
sudo update-manager –d
5.执行如上命令后,软件更新器将会检查当前系统可用的版本更新
django:DateTimeField如何自动设置为当前时间并且能被修改
创建django的model时,有DateTimeField、DateField和TimeField三种类型可以用来创建日期字段,其值分别 对应着datetime()、date()、time()三中对象。这三个field有着相同的参数auto_now和auto_now_add,表面上 看起来很easy,但实际使用中很容易出错,下面是一些注意点。 Continue reading django:DateTimeField如何自动设置为当前时间并且能被修改
lampp+wordpress主机数据库错误修复方法
突然断电后可能会导致wordpress+mysql数据链接不上的问题。
重启lampp显示mysql ok
手动启动/lampp/sbin/mysqld显示一堆错误
查阅/lampp/var/mysql/*.err文件,查找错误描述: Continue reading lampp+wordpress主机数据库错误修复方法
linux版WPS系统缺失字体的解决办法
-
从网上找到或直接到windows/fonts文件里拷贝wingdings、wingdings 2、wingdings 3、Webdings、MT Extra这些字体。
-
进入主文件夹,按Ctrl+h键(显示隐藏文件),查看有没有.fonts文件夹,如果没有就创建一个。
-
把wingdings、wingdings 2、wingdings 3、Webdings、MT Extra这些字体,复制到主文件夹下的.fonts文件夹里。
Last upgrade crashes network manager (no internet connection, no applet)
The system network services are not compatible with this version??
Cause
This is caused by a regression introduced with a fix for libnl3 bug #1511735.
Resulting network-manager crash has been reported in network-manager bug #1539513 or network-manager bug #1539634
Continue reading Last upgrade crashes network manager (no internet connection, no applet)
Django models field types
Field types
AutoField
- class
AutoField(**options)[source]
An IntegerField that automatically increments according to available IDs. You usually won’t need to use this directly; a primary key field will automatically be added to your model if you don’t specify otherwise. See Automatic primary key fields.
Continue reading Django models field types
修改hosts文件上google
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
Grub 命令行用法
grub 命令行用法
2007-01-17 10:36
1、用命令行来引导Linux操作系统的步骤
通过命令行来引导操作系统的流程,也没有什么难的;无非是把指令手工输入到grub>提示符的后面;在这个过程中,tab键的命令补齐功能就显得很重要了。如果您不知道有哪些命令,可以输入help; Continue reading Grub 命令行用法