摘要: 参考:https://docs.djangoproject.com/en/1.9/intro/tutorial02/1. 创建model开打model文件,添加class(相当于table).class下包含不同variables(叫filed,相当于列/属性/column)2.plug APPdj... 阅读全文
posted @ 2016-01-13 19:31 付小同 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 参考:https://docs.djangoproject.com/en/1.9/intro/tutorial02/1. 打开mysite/settings.py( 注:自增 auto_increment )2. 修改DATABASES 'default' 为自己的DB(vi 命令: u 撤销 ct... 阅读全文
posted @ 2016-01-13 18:47 付小同 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1. 下载mysql client(以5.6为例): sudo apt-get install mysql-client-core-5.6 2. 链接数据库服务器 mysql -h 192.168.100.xx -u root -p 输入密码: xxxx (查看所有用户:select * from 阅读全文
posted @ 2016-01-13 15:40 付小同 阅读(219) 评论(0) 推荐(0) 编辑