会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Sherwin
首页
管理
上一页
1
···
9
10
11
12
13
14
15
下一页
2022年9月27日
Centos8安装MySql
摘要: 第一步:下载 wget https://dev.mysql.com/get/mysql80-community-release-el8-3.noarch.rpm 第二步:安装 yum install mysql80-community-release-el8-3.noarch.rpm 命令关闭cen
阅读全文
posted @ 2022-09-27 08:10 Sherwin_szw
阅读(62)
评论(0)
推荐(0)
2022年9月25日
django静态资源收集
摘要: local_settings.py import os from pathlib import Path DEBUG = False ALLOWED_HOSTS = ['*'] BASE_BASE_DIR = Path(__file__).resolve().parent.parent.parent
阅读全文
posted @ 2022-09-25 19:38 Sherwin_szw
阅读(106)
评论(0)
推荐(0)
CentOS7 安装git 配置秘钥公钥克隆代码
摘要: 第一步:安装git客户端,默认安装在/usr/libexec/git-core目录 yum -y install git #查看版本 git --version 第二步:配置git信息 git config --global user.name "username" git config --glo
阅读全文
posted @ 2022-09-25 19:17 Sherwin_szw
阅读(272)
评论(0)
推荐(0)
centos 创建python虚拟环境
摘要: 创建envs目录 mkdir envs 创建虚拟环境 python -m venv django_env 启用虚拟环境 source activate 退出虚拟环境 deactivate 安装包 pip3 install -r requirements.txt
阅读全文
posted @ 2022-09-25 12:38 Sherwin_szw
阅读(35)
评论(0)
推荐(0)
centos 安装 python
摘要: 升级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
阅读(757)
评论(0)
推荐(0)
local_settings.py
摘要: settings内 。。。 try: from .local_settings import * except Exception as e: print(e) local_settings内 写本地/线上配置 。。。
阅读全文
posted @ 2022-09-25 09:51 Sherwin_szw
阅读(30)
评论(0)
推荐(0)
常见python gitignore
摘要: # 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
阅读(657)
评论(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
阅读(28)
评论(0)
推荐(0)
2022年9月24日
自定义组合搜索
摘要: 前端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
阅读(42)
评论(0)
推荐(0)
2022年9月23日
django message
摘要: settings INSTALLED_APPS = [ 'django.contrib.messages', # 第一个位置 ] MIDDLEWARE = [ 'django.contrib.messages.middleware.MessageMiddleware', # 第二个位置 ] TEMP
阅读全文
posted @ 2022-09-23 10:05 Sherwin_szw
阅读(45)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
下一页