首先开始配置settings MEDIA_URL='/media/' #媒体文件的地址 MEDIA_ROOT=os.path.join(BASE_DIR,'media') 1.model 模块 from django.db import models from utils.MyBaseModel i ...
分类:
其他好文 时间:
2020-10-13 17:22:07
阅读次数:
24
参考:http://www.huqiwen.com/2016/08/11/service-builder-use-other-database/ 2016年08月11日 Liferay 评论 2 条 阅读 4,919 views 次 在Liferay里面使用ServiceBuilder默认情况下连接 ...
分类:
数据库 时间:
2020-10-12 20:17:41
阅读次数:
30
戴着假发的程序员出品 抖音ID:戴着假发的程序员 欢迎关注 [查看视频教程] boolean autowireCandidate() default true; autowireCandidate和配置文件bean标签的autowireCandidate属性一样,就是让其他的bean在按照类型注入时 ...
分类:
其他好文 时间:
2020-10-07 20:48:41
阅读次数:
27
HTTP 状态消息 HTML 语言代码 HTTP 方法 当浏览器从 web 服务器请求服务时,可能会发生错误。 从而有可能会返回下面的一系列状态消息: 1xx: 信息 消息:描述: 100 Continue 服务器仅接收到部分请求,但是一旦服务器并没有拒绝该请求,客户端应该继续发送其余的请求。 10 ...
分类:
Web程序 时间:
2020-09-23 23:03:57
阅读次数:
47
Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * c6-media: * extras: ...
分类:
其他好文 时间:
2020-09-17 20:48:20
阅读次数:
33
> 本文参考 [**嗨客网**](https://haicoder.net) 的 [**Python教程**](https://haicoder.net/python/python-tutorial.html)
**关键词:**
`Python 教程` `Python诞生` `Python解释程序` `Python特点`
`Python应用场景` `Python与Java对比` `如何学好Python`
`Python2与Python3区别` `Python2与Python3选择`
`Python2代码转Python3代码`
本专题是关于 **[Python学习路线](https://blog.51cto.com/13550157/2530774)** 中的第一个模块:**Python教程**。
分类:
编程语言 时间:
2020-09-17 20:17:05
阅读次数:
34
socketserver框架主要是使用ServerClass跟RequestHandlerClass两大类。ServerClass处理服务端与客户端的通讯RequestHandlerClass处理数据的解析,接收和发送;主要的业务逻辑ServerClassBaseServer抽象基类TCPServer处理流式套接字UnixStreamServer处理本地处理流式套接字,只适用UNIX平台UDPSe
分类:
其他好文 时间:
2020-09-17 19:05:33
阅读次数:
24
1、在CentOS7中使用gpg创建RSA非对称密钥[root@centos7~]#gpg--gen-keygpg(GnuPG)2.0.22;Copyright(C)2013FreeSoftwareFoundation,Inc.Thisisfreesoftware:youarefreetochangeandredistributeit.ThereisNOWARRANTY,totheextentpe
分类:
其他好文 时间:
2020-09-17 15:57:37
阅读次数:
22
1 Canal环境准备 1.1 docker安装数据库 配置文件 [root@other example]# cat /mydata/mysql/master/conf/my.cnf [client] default-character-set=utf8 [mysql] default-charac ...
分类:
其他好文 时间:
2020-09-17 13:47:43
阅读次数:
26
Vim 配置 if has("autocmd") autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif set encoding=utf-8 ...
分类:
系统相关 时间:
2020-09-17 12:54:28
阅读次数:
28