摘要: 报错:ImportError: cannot import name 'smart_text' from 'django.utils.encodin 解决:将 smart_test --》 smart_str 报错:ImportError: cannot import name 'ugettext_ 阅读全文
posted @ 2024-03-24 15:25 半日闲1 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 根url urlpatterns = [ path('', include('root.urls')), ] root应用url from django.urls import path from . import views urlpatterns = [ path('', views.index 阅读全文
posted @ 2024-01-05 19:33 半日闲1 阅读(3) 评论(0) 推荐(0) 编辑
摘要: docker + vue2 + flask + nginx 项目部署 前后端项目启动 点击页面,前端打印台出现:net::ERR_CONNECTION_REFUSED 原因:后端端口问题 5000端口 容器与宿主机没有进行映射,映射完即可正常访问 阅读全文
posted @ 2023-12-23 21:57 半日闲1 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 执行:npm run serve 出现:error:0308010C:digital envelope routines::unsupported 原因:npm 版本升级 解决:package.json 增加配置 "scripts": { "serve": "set NODE_OPTIONS ope 阅读全文
posted @ 2023-11-24 17:02 半日闲1 阅读(47) 评论(0) 推荐(0) 编辑
摘要: Error: unable to start container 问题:podman 修改存储文件之后无法起容器 解决:重启podman服务:systemctl restart podman 阅读全文
posted @ 2023-11-16 15:07 半日闲1 阅读(53) 评论(0) 推荐(0) 编辑
摘要: css类 <template> <div class="home"> <HelloWorld msg="Welcome to Your Vue.js App"/> </div> </template> <style> .home { height: 100%; width: 100%; backgr 阅读全文
posted @ 2023-11-01 23:59 半日闲1 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 npm install element-plus --save 2. main.js 引入 import * as Elicons from "@element-plus/icons-vue"; for (const name in Elicons) { app.component(na 阅读全文
posted @ 2023-11-01 17:27 半日闲1 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 解决:sda 没有文件系统格式 格式化磁盘即可:mkfs -t ext2 /dev/sda 挂载即可:mount /dev/sda /mnt 阅读全文
posted @ 2023-10-19 22:38 半日闲1 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 npm install vue-router --save vue2 会有版本兼容问题:npm install vue-router@3.5.2 2. 配置 在src文件夹下新建router文件夹,在router文件夹中新建index.js // 导入路由对象 import Router 阅读全文
posted @ 2023-08-16 16:24 半日闲1 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 轮询 - 每隔几秒请求一次接口实现数据更新 单纯使用setInterval会使页面卡死,setTimeout自带清除缓存,组合使用实现轮询可解决浏览器崩溃. <template> <div> <button @click="dataset_log">test</button> <ul> <li v- 阅读全文
posted @ 2023-08-10 23:06 半日闲1 阅读(56) 评论(0) 推荐(0) 编辑