- 博客(20)
- 收藏
- 关注
原创 学习笔记参考
2.【C语言 | 预处理】C语言预处理详解(一) —— #define、#under、#if、#else、#elif、#endif、#include、#error:
2024-05-16 10:48:59 183
原创 Vant3更新Vant4中,Toast API也必须变更。否则将不能正确显示
Vant3更新到Vant4中,Dialog API也进行了调整使用了驼峰命名方式。同样Toast方式也进行了调整。
2024-04-16 11:16:28 151 1
原创 node + express后端 + mysql数据库,postman put模式 404 Not Found错误 解决
使用传送参数:req.body。必须和前端postman发送的请求。2.userApi.js 文件。4.server.js 文件。5.sqlMap.js文件。1.后端文件组织架构。注意:router.
2024-04-06 20:46:17 216 1
原创 学习Vant中,van-dialog不能弹窗问题解决。
van-dialog v-model:show="addressShow" title="添加地址" show-cancel-button>在学习前端Vue中,使用van-dialog发现不能弹窗,源代码如下。title="添加地址" show-cancel-button>虽然在VS编辑器上有红色错误提示。一点点debug发现,问题出在。如全局注册,依然不起作用。参考网上大神的解决方案,
2024-04-06 11:46:40 375 1
原创 Vue3 Cannot read properties of undefined (reading ‘goodsPicture‘)
学习Vue,遇到Cannot read properties of undefined (reading 'goodsPicture')。经过一步步调试,发现<van-cell v-for="item in list" :key="item" :title="item"显示是<img :src="require('../assets/image/goods/'+item.<h3>商品名:{{ item.goodsName }}</h3>下面是goodsList.vue代码。
2024-03-09 21:27:34 262
原创 Vue前端+Vue后端(postman测试)+mysql数据库
参考大神生成shopping项目。安装后:2.Vue3前端Toast主要的原因是vant从3版本更新到4版本。调用代码差异导致。博文所以把更改引用1: import { showToast,closeToast } from 'vant';2 把引用方法给成 showToast,closeToast 成功!
2024-03-08 20:44:11 1002 1
原创 Vue3 引入axios报错 Cannot read properties of undefined (reading ‘post‘)
【代码】Vue3 引入axios报错 Cannot read properties of undefined (reading ‘post‘)
2024-02-05 18:24:46 327 1
原创 Vue3项目启动后显示空白,控制台 vue-router.mjs:2959 Uncaught Error: Provide the “history“ option when calling 错误
上述代码,看着都没问题啊?反复网上查找前辈跑过的坑,终于发现问题。Vue2和Vue3代码引用上的不同。初学Vue时,遇到项目启动显示空白页面。Vue2 引用使用router中。Vue3 引用使用router中。
2024-02-05 11:08:20 638 2
原创 vue3:element ui 失败。配置element-plus/lib/theme-chalk/index.css错。Cannot read properties of undefined (re
另外Vue3,已不支持Vue.use(ElementPlus)方式。使用app.use(ElementPlus)方式。否则会报报错:Cannot read properties of undefined (reading ‘use‘)
2024-02-04 20:45:17 348 1
原创 node.js安装,配置npm更改镜像源。以及Vue安装vue2过程
设置默认镜像源:使用 `npm config set registry` 命令将默认镜像源设置为 `https://registry.npmmirror.com/`。淘宝的镜像源:https://registry.npm.taobao.org,可能近期有问题,一直连不上。选择> Default ([Vue 2] babel, eslint)创建vue,安装vue2。选择>Overwrite。安装element-ui。
2024-02-04 13:36:17 750 1
原创 学习django celery 遇到Received unregistered task of type ‘App07.tasks.hello_world‘. 错误解决过程
shared_task 也可以。celery 和 beat 启动。
2024-01-06 22:15:43 978 1
原创 django 学习邮箱注册激活。发现127.0.0.1 发送了无效的响应 问题解决。
看到debug信息:[01/Jan/2024 09:16:15] You're accessing the development server over HTTPS, but it only supports HTTP.参考网上大神的方法,如 停止服务WorldWideWebPublishingService等等,不能解决问题。SECRET_KEY 生成token。url设置的https有问题呢?和active.html。
2024-01-01 10:00:28 426
原创 django 多文件上传 ValueError: ClearableFileInput doesn‘t support uploading multiple files. 问题解决。
在学习django框架,多个文件上传时遇到ValueError: ClearableFileInput doesn't support uploading multiple files. 代码如下:urls.pyurlpatterns = [ # path('',views.index,name='index'), # 单个文件上传 path('upload/',views.upload,name='upload'), # 多个文件上传 path('many
2023-12-31 17:35:37 655 1
原创 django-simple-captcha 图形码验证,captcha点击不能刷新的问题解决
1.setting配置: 安装”captcha“和captcha配置。点击验证码图片,可以刷新验证码。3. 应用App路由配置。的博文终于解决问题。2. 项目路由的配置。4. views 代码。5. html 代码。
2023-12-28 11:49:10 622 1
原创 python manage.py makemigrations ValueError: source code string cannot contain null bytes
pycharm 2023.2.5版 使用python manage.py inspectdb > App/models.py 生成。编码格式不是UTF-8而是UTF-16。所以产生如标题的错误。
2023-12-06 10:25:54 118 1
原创 pycharm 版本2023.2.5 下django框架下添加异步celery问题总结
4. 启动celery -A celery_demo worker -l info 又出现缺少tzdata,然后产生zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC'1.django下celery,django-celery-result, greenlet等不同的版本会冲突。5.启动beat : celery -A celery_demo beat -l info。经过测试下面的版本ok。
2023-11-22 10:53:15 183
原创 django-simple-captcha 图形码验证,图形不能加载原因
django-simple-captcha 图形码验证,图形不能加载原因
2023-11-07 20:08:14 216
原创 django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
在使用pycharm termianl:python manage.py startapp App01 时,产生django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.错误。解决办法:在项目目录day02下的__init__.py中,添加。
2023-10-13 14:02:56 195
原创 虚拟机Vmware 安装openEuler-22.03-LTS版本显示分辨率设置1980x1080方法
我的虚拟机Vmware workstation 16pro 安装openEuler-22.03-LTS版本 但是集成分表率的列表中没有显示分辨率1980x1080。在网上也参考了一些大神们的方法。
2023-09-20 09:55:08 677
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人