参考 django 官方文档 https://docs.djangoproject.com/zh-hans/2.0/topics/forms/modelforms/ 首先,创建的form类,会有个meta类, meta类里的要定义一个model,即是form表单连接的model,然后fields里是 ...
                            
                            
                                分类:
其他好文   时间:
2020-07-31 14:11:41   
                                阅读次数:
104
                             
                         
                    
                        
                            
                            
                                需求:将/dev/vdb扩展至150G环境:内核为:2.6.32-220.23.2.al.ali1.2.alios6.x86_64ECS主机步骤0、扩容是高风险操作,创建磁盘快照1、通过控制台对云盘进行扩展;2、云盘在线扩展后fdisk-l查询磁盘并未扩展;通过文档内核3.0以上才可以在线扩展磁盘,3.0以下必须要重启,磁盘resan的方式也没有扫出来3、重启后,fdisk-l可查询到已经扩展4、
                            
                            
                                分类:
其他好文   时间:
2020-07-31 12:36:57   
                                阅读次数:
82
                             
                         
                    
                        
                            
                            
                                pip install supervisor pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade supervisor echo_supervisord_conf > /etc/sup ...
                            
                            
                                分类:
其他好文   时间:
2020-07-31 12:28:12   
                                阅读次数:
70
                             
                         
                    
                        
                            
                            
                                下载安装程序 wget https://www.apachefriends.org/xampp-files/7.4.8/xampp-linux-x64-7.4.8-0-installer.run (window版本:https://www.apachefriends.org/xampp-files/ ...
                            
                            
                                分类:
系统相关   时间:
2020-07-30 22:10:03   
                                阅读次数:
93
                             
                         
                    
                        
                            
                            
                                    asp.net core Webapi是有多种上传文件的方法的 另外swagger ui也可以选择文件来上传文件 下面直接上code 1:WebApi后端代码 1 using System; 2 using System.Collections.Generic; 3 using System.Lin ...
                            
                            
                         
                    
                        
                            
                            
                                    需求: 支持文件批量下载。 使用JS能够实现批量下载,能够提供接口从指定url中下载文件并保存在本地指定路径中。 服务器不需要打包。 支持大文件断点下载。比如下载10G的文件。 PC端全平台支持。Windows,macOS,Linux 全浏览器支持。ie6,ie7,ie8,ie9,ie10,ie11 ...
                            
                            
                                分类:
Web程序   时间:
2020-07-30 16:53:09   
                                阅读次数:
127
                             
                         
                    
                        
                            
                            
                                    Failed to deploy 'Compose: docker': com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Docker\Docker\reso ...
                            
                            
                         
                    
                        
                            
                            
                                通过文件夹导入包要求每个目录下都有一个__init__.py文件,此文件可空白。也可不空。 a@ubuntu:~/Desktop$ tree myp myp ├── a │ ├── b.py │ └── __init__.py └── __init__.py 1 directory, 3 files ...
                            
                            
                                分类:
编程语言   时间:
2020-07-29 21:41:32   
                                阅读次数:
70
                             
                         
                    
                        
                            
                            
                                    第一步: pip3 install django-multi-captcha-admin django-simple-captcha # 可以直接安装两个模块 第二步:配置settings.py INSTALLED_APPS = [ 'django.contrib.auth', 'django.co ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 17:41:31   
                                阅读次数:
77
                             
                         
                    
                        
                            
                            
                                server { listen 8085; server_name 127.0.0.1; charset utf-8; root html/dist; location / { try_files $uri $uri/ /index.html; index index.html; } locatio ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 15:25:29   
                                阅读次数:
55