文章分类 -  python后端技术栈

摘要:from django.contrib import admin from rbac import models class PermissionAdmin(admin.ModelAdmin): # 两行显示 list_display = ['title', 'url', 'name'] # 可编辑 阅读全文
posted @ 2021-12-30 17:58 mofr 阅读(43) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>chart_room</title> <style> .chart_room { width: 100%; height: 300px; border: 1px 阅读全文
posted @ 2021-12-07 21:37 mofr 阅读(1093) 评论(0) 推荐(0)
摘要:'''docker-redis# 1mkdir /redis_web_chart /redis_web_chart/conf /redis_web_chart/data# 2vim /redis_web_chart/conf/redis.conf# 3docker run -p 8255:6379 阅读全文
posted @ 2021-11-24 19:46 mofr 阅读(27) 评论(0) 推荐(0)
摘要:from django.test import TestCase # Create your tests here. """ # 一 安装 pip install channels # 二 settings配置 # 1.app注册 INSTALLED_APPS = [ 'channels', ] # 阅读全文
posted @ 2021-11-22 19:20 mofr 阅读(369) 评论(0) 推荐(0)
摘要:<style> .round_icon { width: 34px; height: 34px; display: flex; border-radius: 50%; align-items: center; justify-content: center; overflow: hidden; } 阅读全文
posted @ 2021-11-18 22:20 mofr 阅读(39) 评论(0) 推荐(0)
摘要:0.资源准备 cos-js-sdk-v5.min.js下载地址:https://gitee.com/yqmc/cos-js-sdk-v5minjs-download.git 前端 <script src="{% static 'js/cos-js-sdk-v5.min.js' %}"></scrip 阅读全文
posted @ 2021-11-05 17:17 mofr 阅读(202) 评论(0) 推荐(0)
摘要:$('#fid').val(fid) 在前端不展示,但是如果有的话在后端会正常显示 阅读全文
posted @ 2021-11-03 17:47 mofr 阅读(66) 评论(0) 推荐(0)
摘要:共同点:text(),html() ,val()三个方法用于html元素的存值和取值。 text()用于html元素文本内容的存取 html()不但可以用于html元素文本内容的存取,还可以用于html内容的存取 val()用于input元素内容的存取 通过以上示例,我们得出结论: 除了外,我们想获 阅读全文
posted @ 2021-11-03 17:43 mofr 阅读(93) 评论(0) 推荐(0)
摘要:<!--删除警告模态框--> <div class="modal fade" id="deleteModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="do 阅读全文
posted @ 2021-11-03 17:42 mofr 阅读(23) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2021-10-30 21:37 mofr 阅读(161) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/ywheunji/p/12290702.html 阅读全文
posted @ 2021-10-30 21:13 mofr 阅读(14) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2021-10-30 21:07 mofr 阅读(708) 评论(0) 推荐(0)
摘要:<script src="https://blog.hlzyw.cn/style/js/jquery-1.8.3.min.js"></script> <script type="text/javascript"> /* 鼠标点击特效 */ jQuery(function () { $("html") 阅读全文
posted @ 2021-10-30 21:06 mofr 阅读(118) 评论(0) 推荐(0)
摘要:<script> //鼠标点击出现爱心特效 (function(window,document,undefined){ var hearts = []; window.requestAnimationFrame = (function(){ return window.requestAnimatio 阅读全文
posted @ 2021-10-30 20:57 mofr 阅读(249) 评论(0) 推荐(0)
摘要:0.资源下载 https://gitee.com/yqmc/cos-js-sdk-v5minjs-download.git1. css <link rel="stylesheet" href="{% static 'plugin/editor-md/css/editormd.min.css' %}" 阅读全文
posted @ 2021-10-30 20:47 mofr 阅读(29) 评论(0) 推荐(0)
摘要:# pip install -U cos-python-sdk-v5 # APPID https://console.cloud.tencent.com/cam/overview # -*- coding:utf-8 -*- from qcloud_cos import CosConfig from 阅读全文
posted @ 2021-10-30 20:40 mofr 阅读(339) 评论(0) 推荐(0)
摘要:0.资源下载 https://gitee.com/yqmc/cos-js-sdk-v5minjs-download.git<!-- 1. 内容--> <div id="previewMarkdown"> <Textarea> {{ wiki_object.content }} </Textarea> 阅读全文
posted @ 2021-10-30 20:34 mofr 阅读(136) 评论(0) 推荐(0)
摘要:0.资源下载 https://gitee.com/yqmc/cos-js-sdk-v5minjs-download.git # 1. 内容方面 <form id="addEditForm" novalidate> {% csrf_token %} {% for field in form %} {% 阅读全文
posted @ 2021-10-30 20:29 mofr 阅读(88) 评论(0) 推荐(0)
摘要:1、表之间没有外键关联,但是有外键逻辑关联(有充当外键的字段) 2、断关联后不会影响数据库查询效率,但是会极大提高数据库增删改效率(不影响增删改查操作) 3、断关联一定要通过逻辑保证表之间数据的安全,不要出现脏数据,代码控制 4、断关联 5、级联关系 作者没了,详情也没:on_delete=mode 阅读全文
posted @ 2021-10-28 22:05 mofr 阅读(67) 评论(0) 推荐(0)
摘要:wiki_obj = models.Wiki.objects.filter(project_id=project_id).values('parent_id', 'title')<QuerySet [(None, "'lwc"), (None, '’看'), (1, '哦i建安费奢侈品'), (3, 阅读全文
posted @ 2021-10-28 22:04 mofr 阅读(63) 评论(0) 推荐(0)