上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: 升级openssl # 1. 查看当前openssl的版本信息 openssl version #1.0.2 需要升级 # 2. 安装对应的依赖库 sudo yum -y groupinstall "Development tools" sudo yum -y install zlib-devel 阅读全文
posted @ 2022-09-25 12:08 Sherwin_szw 阅读(728) 评论(0) 推荐(0) 编辑
摘要: settings内 。。。 try: from .local_settings import * except Exception as e: print(e) local_settings内 写本地/线上配置 。。。 阅读全文
posted @ 2022-09-25 09:51 Sherwin_szw 阅读(20) 评论(0) 推荐(0) 编辑
摘要: # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ 阅读全文
posted @ 2022-09-25 09:45 Sherwin_szw 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 构造 class Connect: def __init__(self): pass def __enter__(self): #链接数据库 return self def __exit__(self,exc_type,exc_val,exc_tb): #关闭数据库 pass def fetchon 阅读全文
posted @ 2022-09-25 08:25 Sherwin_szw 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 前端html {% if sg.get_row_list %} <div class="panel panel-default "> <div class="panel-heading"> <i class="fa fa-filter" aria-hidden="true"></i> 快速筛选 </ 阅读全文
posted @ 2022-09-24 14:24 Sherwin_szw 阅读(28) 评论(0) 推荐(0) 编辑
摘要: settings INSTALLED_APPS = [ 'django.contrib.messages', # 第一个位置 ] MIDDLEWARE = [ 'django.contrib.messages.middleware.MessageMiddleware', # 第二个位置 ] TEMP 阅读全文
posted @ 2022-09-23 10:05 Sherwin_szw 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 前端 {% extends 'layout.html' %} {% load static %} {% block content %} <div class="panel panel-default"> <!-- Default panel contents --> <div class="pan 阅读全文
posted @ 2022-09-19 17:10 Sherwin_szw 阅读(28) 评论(0) 推荐(0) 编辑
摘要: django 后端逻辑 def transaction_add(request, pk): res_code = ResCode() if request.method == 'POST': form = TransactionForm(data=request.POST) if not form. 阅读全文
posted @ 2022-09-17 18:27 Sherwin_szw 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 前端js <script> $(function () { $("#addBtn").click(function () { $("#addModal").modal('show') }) $("#submitBtn").click(function () { $.ajax({ url: "{% u 阅读全文
posted @ 2022-09-17 12:53 Sherwin_szw 阅读(26) 评论(0) 推荐(0) 编辑
摘要: model class TransactionRecord(ActiveBaseModel): status_class_mapping = { 1: 'info', 2: 'danger', 3: 'success', 4: 'primary', 5: 'warning', } choice_st 阅读全文
posted @ 2022-09-16 15:01 Sherwin_szw 阅读(51) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页