摘要: ps:Centos服务器上自带了python2 和 python3 这个一篇把python命令更改为python3的教程 第一步,查看一下系统版本和python信息 cat /etc/redhat-release #查看内核版本 python -V #查看python版本 which python 阅读全文
posted @ 2020-12-02 11:46 Bronya天使 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 我想来跟你聊聊MySQL的基础架构。我们经常说,看一个事儿千万不要直接陷入细节里,你应该先鸟瞰其全貌,这样能够帮助你从高维度理解问题。同样,对于 MySQL的学习也是这样。平时我们使用数据库,看到的通常都是一个整体,比如,你有一个最简单的表,表里只有一个ID字段,再执行下面这个查询语句时: sele 阅读全文
posted @ 2020-11-17 14:41 Bronya天使 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 导包路径: 是一个普通文件夹, 不能含有 __init__.py文件 from xxx.yyy import zzz xxx 是一个包, xxx文件夹下必须有__init__.py 文件 from xxx.yyy import zzz xxx所在的文件夹就是导包路径, 导包路径必须在sys.path 阅读全文
posted @ 2020-09-11 10:53 Bronya天使 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-02 19:00 Bronya天使 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: 在创建了套层的文件后,django需要的解释器也需要重新设置,普通的设置明显不能用,那么该如何解决呢 下图: 点击OK 依次点击 apply 和 ok 阅读全文
posted @ 2020-08-19 15:15 Bronya天使 阅读(1122) 评论(0) 推荐(1) 编辑
摘要: django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency user.0001_initial on datab 阅读全文
posted @ 2020-08-13 16:06 Bronya天使 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 可能方案一:或者查看自己有的地方是不是写了 debugger ,当代码执行到debugger的时候,Chrome就会启动调试模式。 如下图,后来我把它注释掉,也就好了。 解决方案二:点击右下方箭头指的地方,点成蓝色,就可以了。 如下图所示 然后刷新一下页面 阅读全文
posted @ 2020-08-12 08:04 Bronya天使 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: 在用原生SQL语句插入的时候,报了一个错,下面我们来看一下我的原生 SQL 和报错情况 sql = "insert into bluser (name,gender,order) values ('%s','%s','%s')" % (name, gender,order) 可以看出SQL语句是没有 阅读全文
posted @ 2020-08-01 19:20 Bronya天使 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: -- sql强化演练( goods 表练习) -- 查询类型 cate_name 为 '超级本' 的商品名称 name 、价格 price ( where ) select name,price from goods where cate_name = "超级本"; -- 显示商品的种类 -- 1 阅读全文
posted @ 2020-07-14 16:17 Bronya天使 阅读(189) 评论(0) 推荐(0) 编辑
摘要: -- 查询练习 -- 查询所有字段 -- select * from 表名; select * from students; -- 查询指定字段 -- select 列1,列2,... from 表名; select name,gender from students; -- 使用 as 给字段起别 阅读全文
posted @ 2020-07-14 16:08 Bronya天使 阅读(122) 评论(0) 推荐(0) 编辑