随笔分类 -  后端开发日记

摘要:Django ImageField 一些内置属性 >>> car = Car.objects.get(name="57 Chevy")>>> car.photo<ImageFieldFile: cars/chevy.jpg>>>> car.photo.name'cars/chevy.jpg'>>> 阅读全文
posted @ 2022-11-07 15:56 洪豆豆的记录 阅读(21) 评论(0) 推荐(0) 编辑
摘要:【nginx】前后端代理配置 http://t.zoukankan.com/somliy-p-15211382.html #前端页面代理 location / { root html/h5; index index.html index.htm; }#后端静态文件代理 location /age/s 阅读全文
posted @ 2022-11-03 14:52 洪豆豆的记录 阅读(1047) 评论(0) 推荐(0) 编辑
摘要:uniapp中的uni-file-picker组件多图上传问题(同步方法) https://blog.csdn.net/m0_67391120/article/details/123431870 默认file值以formData格式传输,header中不需要配置Content-Type,若配置Con 阅读全文
posted @ 2022-11-01 18:10 洪豆豆的记录 阅读(4548) 评论(0) 推荐(0) 编辑
摘要:jsDelivr 为开发者提供免费公共 CDN 加速服务 https://blog.csdn.net/larpland/article/details/101349605 访问github仓库中的资源 https://blog.csdn.net/yunmuq/article/details/1104 阅读全文
posted @ 2022-10-31 20:21 洪豆豆的记录 阅读(47) 评论(0) 推荐(0) 编辑
摘要:uniapp H5 打包并部署到 nginx https://www.shuzhiduo.com/A/gVdnM1m85W/ 1.运行基础路径最好用 ./ ,如果配置了其他请自行添加路径。 2.由于uniapp 的特性,所以导致了不支持 history 模式,只能支持 hash 模式( 路径会带 # 阅读全文
posted @ 2022-10-31 17:08 洪豆豆的记录 阅读(6669) 评论(0) 推荐(0) 编辑
摘要:https://www.sojson.com/image/change.html 阅读全文
posted @ 2022-10-31 17:05 洪豆豆的记录 阅读(9) 评论(0) 推荐(0) 编辑
摘要:live-server 安装和运行: 1. 安装:npm install -g live-server(使用npm命令即可,这里建议全局安装,以后任意位置可用 ) 2. 运行可以直接输入命令: live-server ( 默认端口为8080,如需要修改可以在运行命令后 跟上一些参数配置 ) 注:更多 阅读全文
posted @ 2022-10-31 11:18 洪豆豆的记录 阅读(542) 评论(0) 推荐(0) 编辑
摘要:ORM查询方法 ORM查询简单用法 https://blog.csdn.net/weixin_46237597/article/details/111329144 阅读全文
posted @ 2022-10-30 22:38 洪豆豆的记录 阅读(28) 评论(0) 推荐(0) 编辑
摘要:Django(20)-ORM更新操作及实例演示 https://blog.csdn.net/redrose2100/article/details/117916821 object.get()我们得到的是一个对象,如果在数据库中查不到这个对象或者查找到对象都会报错!!!object.filter() 阅读全文
posted @ 2022-10-30 22:28 洪豆豆的记录 阅读(282) 评论(0) 推荐(0) 编辑
摘要:手机端运行会直接调起电话按钮,代码如下: https://blog.csdn.net/ONLYSRY/article/details/127221380 <view class="text2_button" @click="freeTell"> <text>4007-000-000</text></ 阅读全文
posted @ 2022-10-30 21:59 洪豆豆的记录 阅读(5818) 评论(0) 推荐(0) 编辑
摘要:Django中model_to_dict使用 https://blog.csdn.net/yuanlaidewo000/article/details/84062774 from django.forms.models import model_to_dictdi = model_to_dict(o 阅读全文
posted @ 2022-10-30 11:36 洪豆豆的记录 阅读(19) 评论(0) 推荐(0) 编辑
摘要:笔记:django get方法的异常 ...if num == 1: return clone._result_cache[0]if not num: raise self.model.DoesNotExist( "%s matching query does not exist." % self. 阅读全文
posted @ 2022-10-30 10:40 洪豆豆的记录 阅读(206) 评论(0) 推荐(0) 编辑
摘要:Uni app token设置 https://www.jianshu.com/p/d617da66d144 onLaunch: function() { console.log('App Launch'); var token = get_token(); if (token){ uni.swit 阅读全文
posted @ 2022-10-29 18:54 洪豆豆的记录 阅读(1349) 评论(0) 推荐(0) 编辑
摘要:细品Django的view秘密 https://zhuanlan.zhihu.com/p/386247778 阅读全文
posted @ 2022-10-27 21:27 洪豆豆的记录 阅读(8) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_48082548/article/details/125172131 阅读全文
posted @ 2022-10-27 21:15 洪豆豆的记录 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Python web模版Django-15 设置urls.py中的urlpatterns,用path方法时不能用正则表达式 https://blog.csdn.net/Pansc2004/article/details/80495723 urlpatterns = [ re_path('delete 阅读全文
posted @ 2022-10-27 21:14 洪豆豆的记录 阅读(69) 评论(0) 推荐(0) 编辑
摘要:查看被占用的快捷键(Windows Hotkey Explorer) https://www.onlinedown.net/soft/1153197.htm PC Hunter是一个Windows系统信息查看软件,同时也是一个手工杀毒辅助软件。 http://www.xuetr.com/?p=191 阅读全文
posted @ 2022-10-24 23:36 洪豆豆的记录 阅读(199) 评论(0) 推荐(0) 编辑
摘要:JSON常见用法:json.load()、json.loads()、json.dump()、json.dumps() 常用的方法 json.load()从json文件中读取数据 json.loads()将str类型的数据转换为dict类型 json.dumps()将dict类型的数据转成str js 阅读全文
posted @ 2022-10-20 11:34 洪豆豆的记录 阅读(101) 评论(0) 推荐(0) 编辑
摘要:Python垃圾回收机制 引用计数 引用计数-1的条件 对象被显式销毁,如 del a 。 变量重新赋予新的对象,例如 a=0 。 对象离开它的作用域,如 func 函数执行完毕时, func 函数中的局部变量(全局变量不会)。 对象所在的容器被销毁,或从容器中删除对象。 标记-清除 标记阶段。将所 阅读全文
posted @ 2022-10-20 11:26 洪豆豆的记录 阅读(24) 评论(0) 推荐(0) 编辑
摘要:JS字符串拼接的几种方式 https://blog.csdn.net/u012320487/article/details/123822785 传参数时保持默认的参数 <input type="text" v-model="item.count" @change="updateNumber($eve 阅读全文
posted @ 2022-10-19 16:52 洪豆豆的记录 阅读(68) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示