会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大话人生
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
公告
上一页
1
···
27
28
29
30
31
32
33
34
35
···
64
下一页
2020年8月30日
mysqlclient 1.4.0 or newer is required; you have 0.10.0
摘要: 参考网址:https://www.cnblogs.com/meml/p/13579831.html 解决:在工程文件的__init__.py中加上 指定版本 import pymysqlpymysql.version_info = (1, 4, 13, "final", 0) #指定版本pymysq
阅读全文
posted @ 2020-08-30 16:06 大话人生
阅读(2194)
评论(0)
推荐(0)
2020年8月29日
drf使用开发接口
摘要: 1.创建程序并初始化数据库: models.py中的内容: from django.db import models # Create your models here. class Category(models.Model): """ 文章分类 """ name = models.CharFie
阅读全文
posted @ 2020-08-29 07:28 大话人生
阅读(303)
评论(0)
推荐(0)
resful规范
摘要: 1.给一个url,例如:http://192.168.1.103:8000/info/ 发get请求:获取数据 发post请求:添加数据 发put请求:更新数据 发delete请求:删除数据 2.实现方式: FBV:根据不同url,做出不同的相应,例如get请求为一个url,post为另一个url等
阅读全文
posted @ 2020-08-29 06:00 大话人生
阅读(331)
评论(0)
推荐(0)
2020年8月28日
ModuleNotFoundError: No module named 'corsheaders'解决办法
摘要: 参考网址:https://blog.csdn.net/weixin_45336184/article/details/104185430 1. pip install django-cors-headers 2.如果已经安装,查看 django Server中运行的文件的Python interpr
阅读全文
posted @ 2020-08-28 08:21 大话人生
阅读(12648)
评论(0)
推荐(0)
No module named "Crypto",如何安装Python三方模块Crypto
摘要: 参考网址:https://blog.csdn.net/u012798683/article/details/88654534 Python版本:Python3.6 ,操作系统:WIN10 首先用命令 pip install crypto 安装这个模块的时候 ,会安装后各种包,chardet, cer
阅读全文
posted @ 2020-08-28 08:05 大话人生
阅读(516)
评论(0)
推荐(0)
2020年8月26日
git查看配置命令
摘要: 执行 git_cmd.exe 输入: git config -l #即可查看git配置
阅读全文
posted @ 2020-08-26 20:56 大话人生
阅读(1353)
评论(0)
推荐(0)
2020年8月17日
python 安装虚拟环境
摘要: 1. pip install virtualenv 2.pip install virtualenvwrapper-win 注: linux下运行pip install virtualenvwrapper
阅读全文
posted @ 2020-08-17 09:07 大话人生
阅读(145)
评论(0)
推荐(0)
2020年8月13日
django 生成的数据库表 id 字段溢出问题解决方法
摘要: 方法一:(不推荐) drop table_name; #删除表 django重新建表。 方法二: 1.查询当前自增字段的值 SELECT AUTO_INCREMENT FROM information_schema.tables WHERE table_name="car_code"; 2.修改自增
阅读全文
posted @ 2020-08-13 17:34 大话人生
阅读(395)
评论(0)
推荐(0)
2020年8月9日
xadmin列表页图片缩放(大图小图切换显示)
摘要: 1.modes.py内容: 内容(html代码): html_img = """ <a href='{}'><span>{}<span></a><br/> <div onclick='$(".my_set_image_img").hide();$(this).next().show();'> <im
阅读全文
posted @ 2020-08-09 11:04 大话人生
阅读(415)
评论(0)
推荐(0)
xadmin中添加Action类
摘要: 1.在应用的adminx.py中代码如下: from xadmin.plugins.actions import BaseActionView #导入ActionView class MyAction(BaseActionView): #这里需要填写三个属性 action_name = "my_ac
阅读全文
posted @ 2020-08-09 09:20 大话人生
阅读(135)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
64
下一页