04 2019 档案

摘要:外键的创建,前提外键所在的字段必须是主键或者有约束 阅读全文
posted @ 2019-04-30 17:48 Gaoyongxian666 阅读(487) 评论(0) 推荐(0)
摘要:如果数据库的数据集已经是utf8mb4了 就是pymysql连接时候出现了问题 阅读全文
posted @ 2019-04-30 17:45 Gaoyongxian666 阅读(625) 评论(0) 推荐(0)
摘要:一种是获取当前你正在操作文件的路径 一种是获取你执行文件的路径(比如你在你调用的包里面更改了,执行的时候就不会找你的包的路径,而是你执行文件的路径) 阅读全文
posted @ 2019-04-30 11:32 Gaoyongxian666 阅读(417) 评论(0) 推荐(0)
摘要:pycrypto已经舍弃了使用pycryptodome,pip uninstall pycrypto,然后安装pycryptodome,pip install pycryptodome 可能还需要改名c改成C,所有 阅读全文
posted @ 2019-04-25 17:13 Gaoyongxian666 阅读(257) 评论(0) 推荐(0)
摘要:ValueError: Dependency on app with no migrations: users 先 python manage.py makemigration 后 python manage.py migrate 阅读全文
posted @ 2019-04-22 18:35 Gaoyongxian666 阅读(178) 评论(0) 推荐(0)
摘要:想要在navicat for mysql ,sql sever等这一类的可视化软件中执行sql语句 就找查询分析器,查询 阅读全文
posted @ 2019-04-18 19:03 Gaoyongxian666 阅读(158) 评论(0) 推荐(0)
摘要:sql 脚本是包含一到多个 sql 命令的 sql 语句集合 使用 Linux: mysqldump 命令 1.导出数据和表结构: mysqldump -u 用户名 -p 数据库名称 > name.sql #/usr/local/mysql/bin/mysqldump -u root -p abc 阅读全文
posted @ 2019-04-18 19:01 Gaoyongxian666 阅读(984) 评论(0) 推荐(0)
摘要:1.如果 window 上的命令行,在进行编译的不好使 可以尝试在git 中运行 2.运行 python 脚本 ,保持脚本一直执行(尤其是中间出错) 可以做一个 sh 文件,然后在git 中运行 #!/bin/shwhile [ 1 ]; dopython C:/Users/g1695/Deskto 阅读全文
posted @ 2019-04-14 22:01 Gaoyongxian666 阅读(757) 评论(0) 推荐(0)
摘要:更改Unicode为str 然后重新setup install 阅读全文
posted @ 2019-04-07 16:39 Gaoyongxian666 阅读(768) 评论(0) 推荐(0)