上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页
摘要: 一、数据库操作 1、创建model表 ​ 基本结构 更多字段: + View Code 更多参数 + View Code 2、注册APP,settings添加app 3、生成相应的表 ​ python manage.py makemigrations ​ python manage.py migra 阅读全文
posted @ 2020-08-28 19:56 larybird 阅读(233) 评论(0) 推荐(0)
摘要: 创建一个Django项目 django-admin startproject ‘xxxx‘ 修改setting文件,在setting里面设置你要连接的数据库类型和连接名称,地址之类,和创建新项目的时候一致 DATABASES = { 'default': { 'ENGINE': 'django.db 阅读全文
posted @ 2020-08-28 18:49 larybird 阅读(709) 评论(0) 推荐(0)
摘要: jpype安装 pip3 install jpype1 阅读全文
posted @ 2020-08-27 10:07 larybird 阅读(173) 评论(0) 推荐(0)
摘要: 一、获取当前类定义的所有方法,不包括父类和接口的 class.getDeclaredMethods() eg: import java.lang.reflect.Method; public class testH { //获取java类的所有方法并打印出来 public static void m 阅读全文
posted @ 2020-08-26 16:52 larybird 阅读(4306) 评论(0) 推荐(0)
摘要: 转载自:https://www.cnblogs.com/yanglang/p/8780722.html sql中的连接查询有inner join(内连接)、left join(左连接)、right join(右连接)、full join(全连接)四种方式,它们之间其实并没有太大区别,仅仅是查询出来的 阅读全文
posted @ 2020-08-24 17:19 larybird 阅读(271) 评论(0) 推荐(0)
摘要: 转载自:https://www.cnblogs.com/eedc/p/6168430.html 1、(先进入项目文件夹)通过命令 git init 把这个目录变成git可以管理的仓库 git init 2、把文件添加到版本库中,使用命令 git add .添加到暂存区里面去,不要忘记后面的小数点“. 阅读全文
posted @ 2020-08-24 17:18 larybird 阅读(118) 评论(0) 推荐(0)
摘要: 转载自:https://blog.csdn.net/mrw456/article/details/49718235 1、导入数据库驱动jar包,与及编写数据库配置文件(mysql.properties),mysql.properties放在项目的src目录下[本例使用的数据库为Mysql5.5,数据 阅读全文
posted @ 2020-08-24 17:17 larybird 阅读(1759) 评论(0) 推荐(0)
摘要: lsof -i:port_number 阅读全文
posted @ 2020-08-24 17:12 larybird 阅读(97) 评论(0) 推荐(0)
摘要: yum install lsof 阅读全文
posted @ 2020-08-24 17:11 larybird 阅读(308) 评论(0) 推荐(0)
摘要: 转载自:https://www.cnblogs.com/ramantic/p/7517544.html 一般的部署途径 Tomcat 的部署途径很多,一般有如下几种: 直接将 War 包拷贝到 webapps 目录中,然后启动 Tomcat。 登陆 Tomcat 管理控制台http://localh 阅读全文
posted @ 2020-08-24 17:10 larybird 阅读(215) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页