原因: IDEA的maven地址设置出错,系统找不到指定的maven路径 解决: setting >maven修改正确的maven链接地址。 设置你maven 的地址为你的存放路基就好了 ...
分类:
其他好文 时间:
2019-12-23 20:47:23
阅读次数:
118
``` Django2.1.1与xadmin0.6.0遇到的坑 BlueMiaomiao关注4人评论11188人阅读2018-09-23 12:17:56 (1)django2.0把from django.core.urlresolvers修改成了django.urls 异常信息: ModuleNo... ...
分类:
其他好文 时间:
2019-12-23 20:44:23
阅读次数:
102
//创建配置根对象 var configurationRoot = builder1.Build(); //读取到ioc IOptions<SuperAppsettings> setting 依赖注入 services.Configure<SuperAppsettings>(configuratio ...
分类:
Web程序 时间:
2019-12-23 17:12:36
阅读次数:
93
DRF序列化 要安装Djangorestframework 要使用的时候要在setting中注册app--rest_framework 使用之前要定义一个序列化器,指定要序列化的字段 下面 是models中的表: 新建一个py文件当做序列化器 from rest_framework import s ...
分类:
其他好文 时间:
2019-12-23 13:36:02
阅读次数:
67
1.点击设置 点击CodeRunner的小齿轮,点击configure extension settings 2.点击映射 点击executor map中的Edit in settings.json 3.粘贴代码 粘贴如下代码,按下command + s 进行保存 ...
分类:
编程语言 时间:
2019-12-23 13:19:20
阅读次数:
415
客户端 core文件夹 from lib import common from conf import setting import os userinfo = {'cookies': None} def register(client): while True: username = input( ...
分类:
其他好文 时间:
2019-12-22 16:14:31
阅读次数:
82
以项目名dispy为例,把站点名变量应用于模板中 ⑴ 在项目目录下创建dispy/global_settings.py文件 from django.conf import settings def get_global_settings(request): context = { 'site_nam ...
分类:
其他好文 时间:
2019-12-22 00:46:26
阅读次数:
118
post请求在二级目录下的views.py文件中写入 from django.http import HttpResponse # Create your views here. a = {"name":"来了老弟","pwd":"老弟你真棒"} #声明全局变量 def indexb(request ...
分类:
其他好文 时间:
2019-12-20 20:40:21
阅读次数:
83
一、虚拟环境简介 1.什么是虚拟环境? 虚拟环境是用于依赖项管理和项目隔离的python工具,允许python的第三方库安装在本地特定项目的隔离目录中,而不是全局安装。 2.虚拟环境的组成 ① 安装了第三方库的site-packages/文件夹。 ② 系统上安装的python可执行文件的symlin ...
分类:
其他好文 时间:
2019-12-20 20:26:10
阅读次数:
67
mysql连接的超时问题:Communications link failure org.springframework.dao.RecoverableDataAccessException: ### Error updating database. Cause: com.mysql.jdbc.ex ...
分类:
其他好文 时间:
2019-12-20 15:22:04
阅读次数:
144