使用顺序 settings 静态文件配置 models.py 映射关系 写映射关系操作数据库 settings 配置: 创库 用可视化工具创建一个MySQL数据库 创表 △id字段是自动添加的,如果你想要指定自定义主键,只需在其中一个字段中指定 primary_key=True 即可。如果Djang ...
分类:
其他好文 时间:
2019-12-19 19:14:43
阅读次数:
113
string (1) size_t rfind (const string& str, size_t pos = npos) const noexcept; c-string (2) size_t rfind (const char* s, size_t pos = npos) const; buf ...
分类:
其他好文 时间:
2019-12-19 19:13:41
阅读次数:
92
目录 2019.12.04 我与阿里云的日常-DavaV开发教程 2019.12.19 我与阿里云的日常-QuickBI开发教程 ...
分类:
其他好文 时间:
2019-12-19 18:50:24
阅读次数:
55
3.1.语法格式 find [路劲][选项][操作] 选项参数对照表 3.2.-name 查找/etc/目录下以.conf结尾的文件 find /etc/ -name "*.conf" -iname 不区分大小写 find /etc/ -iname "*.conf" -user 查找当前目录为roo ...
分类:
系统相关 时间:
2019-12-19 16:00:23
阅读次数:
129
git config基本配置如下: [core] repositoryformatversion = 0 filemode = false logallrefupdates = true [remote "origin"] url = 你的远程仓库url fetch = +refs/heads/*: ...
分类:
其他好文 时间:
2019-12-19 14:39:23
阅读次数:
128
安装 djangorestframework pip install djangorestframework 将rest_framework注册到app上 INSTALLED_APPS = [ 'rest_framework', 'app01' .... ] urls from django.url ...
分类:
其他好文 时间:
2019-12-19 12:49:20
阅读次数:
94
纯css实现属性结构 **css实现属性结构的思路是利用伪类实现树形结构连接线,如果想实现点击展开和收 缩以及复选框效果还得配合js来实现。其实展开和收缩就是一个点击元素其子元素隐藏 和显示的切换。** 效果图 html结构 <ul class="domtree"> <li> 1级菜单 <ul> < ...
分类:
Web程序 时间:
2019-12-19 11:25:42
阅读次数:
153
packagewho;importjava.util.Scanner;/**分解质因数@authorjition/publicclassPrimeFactorDecompositon{publicstaticvoidmain(String[]args){System.out.println("输入所求正整数:");Scannersc=newScanner(System.in);intn=sc.ne
分类:
编程语言 时间:
2019-12-19 10:02:08
阅读次数:
128
后端get请求 public ResponseEntity<CommodityRespM02> commoditySelectMap(@RequestParam Commodity commodity) throws Exception { ........................... } ...
分类:
其他好文 时间:
2019-12-19 09:36:06
阅读次数:
93
一、SpringCloud_eureka_server 1、导入依赖 <!--SpringBoot节点--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</ar ...
分类:
编程语言 时间:
2019-12-19 09:28:57
阅读次数:
79