会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
PythonNew_Mr.Wang
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
···
8
9
10
11
12
13
14
15
16
···
22
下一页
2021年9月26日
【Element UI】初始化脚手架与添加ElementUI配置
# VUE2.0安装 1:先安装node.js 2: 安装npm 3: 安装webpack npm install webpack -g 4: 安装cnpm npm install -g cnpm -registry=https://registry.npm.taobao.org 5: 安装vue脚
Read More
posted @ 2021-09-26 09:17 PythonNew_Mr.Wang
Views(282)
Comments(0)
Diggs(0)
2021年9月24日
【Element UI】 后端导出筛选数据与前端elementUI 导出按钮导出数据表格
后端:URL: # 第一个导出全部,第二个导出筛选部分的,不加限制正则是为了接收参数 path('export_securitylog', security_log.ExportLog.as_view(),name='export_securitylog'), path('export_form_s
Read More
posted @ 2021-09-24 14:00 PythonNew_Mr.Wang
Views(782)
Comments(0)
Diggs(0)
2021年9月18日
【Python小随笔】时间戳互转时间格式,IPV4互转整型
def change_time(timeStamp): """ :param timeStamp: 时间戳 :return: 时间格式 """ timeArray = time.localtime(timeStamp) otherStyleTime = time.strftime("%Y-%m-%d
Read More
posted @ 2021-09-18 14:29 PythonNew_Mr.Wang
Views(155)
Comments(0)
Diggs(0)
2021年9月14日
【Element UI】el-tooltip组件(提示消息) 换行
<el-tooltip class="item" effect="dark" placement="right-end"> <div slot="content" v-html="ipContent"></div> // 使用slot绑定content 使用v-html渲染HTML格式 <i cla
Read More
posted @ 2021-09-14 11:25 PythonNew_Mr.Wang
Views(3639)
Comments(0)
Diggs(1)
2021年8月27日
【Django前后端部署】更新部署,不使用反向代理
配置完Nginx的静态路径:不用配置反向代理 碰到的问题:前台可以访问,但是后台静态文件404,折腾两个小时: 处理:在django的ulrs加上两个请求路径: url(r'^media/(?P<path>.*)', serve, {"document_root": settings.MEDIA_R
Read More
posted @ 2021-08-27 15:03 PythonNew_Mr.Wang
Views(108)
Comments(0)
Diggs(0)
2021年8月18日
【Django】Admin重写保存按钮
def save_model(self, request, obj, form, change): super().save_model(request, obj, form, change) # 扩展保存按钮,obj是保存的model对象 if obj.action == 1: # 通过 user
Read More
posted @ 2021-08-18 16:48 PythonNew_Mr.Wang
Views(497)
Comments(0)
Diggs(0)
【Django Admin】 搜索框,选择外键关联显示名称
Django Admin 后台硬伤:当外键太多的时候,数量太多会很累,需要一个搜索框: # 外键关联的主键ADMIN下定义搜素的 字段 class UserInfoAdmin(admin.ModelAdmin): ````````` search_fields = ("username",) # 用
Read More
posted @ 2021-08-18 16:15 PythonNew_Mr.Wang
Views(1005)
Comments(0)
Diggs(0)
2021年8月16日
【Django组件】UNIAPP+DJANGO 多图像上传 + 后端接口接受 uView组件
VUE文件: <template> <!-- 提交图片 --> <view class="cu-card article"> <view class="cu-item shadow" style="background-color: transparent;"> <u-upload ref="uUp
Read More
posted @ 2021-08-16 20:31 PythonNew_Mr.Wang
Views(480)
Comments(0)
Diggs(0)
【Django】允许跨域
pip install django-cors-headers INSTALLED_APPS = [ ...... 'corsheaders', ...... ] MIDDLEWARE = [ ...... 'corsheaders.middleware.CorsMiddleware', 'djan
Read More
posted @ 2021-08-16 16:41 PythonNew_Mr.Wang
Views(69)
Comments(0)
Diggs(0)
2021年7月19日
【VUE】数据库动态渲染标签,并且动态绑定事件与激活图标
<template> <view > <!-- 输入框 --> <view class="search"> <u-search placeholder="请输入关键词" input-align="center" v-model="keyword" bg-color="#FFFFFF" border-
Read More
posted @ 2021-07-19 19:42 PythonNew_Mr.Wang
Views(418)
Comments(0)
Diggs(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
22
下一页
公告