会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SHUN-ReRound
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2025年1月20日
【python】添加路径
摘要: 动态添加路径 import sys # 添加当前工作目录到 Python 的路径中 current_dir = os.getcwd() if current_dir not in sys.path: sys.path.append(current_dir)
阅读全文
posted @ 2025-01-20 09:27 ReRound
阅读(14)
评论(0)
推荐(0)
2025年1月18日
【python】后台运行 django
摘要: 注意 python 版本 python3,还有 manage.py 的路径。 在后台运行 django: nohup python3 manage.py runserver 0.0.0.0:8000 & ps:&可以不写,这样启动测试服务器后,就可以常驻后台运行了。 启动程序并输入到指定日志: no
阅读全文
posted @ 2025-01-18 23:45 ReRound
阅读(34)
评论(0)
推荐(0)
【mysql】数据备份与恢复
摘要: 【mysql】数据备份与恢复 1、数据库的备份与恢复 1 .1 备份整个数据库: [root@localhost ~]# mysqldump -uroot -p school > /opt/school.sqlbak //school是数据库 Enter password: (数据库密码) 恢复整个
阅读全文
posted @ 2025-01-18 21:27 ReRound
阅读(12)
评论(0)
推荐(0)
【python】部署 Django
摘要: 运行 python manage.py runserver 0.0.0.0:8080 允许所有 IP 访问 修改 settings.py ALLOWED_HOSTS = [] 值为 '*' ALLOWED_HOSTS = ['*'] 也可以设置特定 IP ALLOWED_HOSTS = ['1.1.
阅读全文
posted @ 2025-01-18 17:17 ReRound
阅读(9)
评论(0)
推荐(0)
【Linux】防火墙设置
摘要: 检查防火墙设置 放行8000端口 确保服务器的防火墙已放行8000端口,可通过命令行工具或云服务商控制面板配置。 如在 Linux 系统中,可使用 iptables -A INPUT -p tcp --dport 8000 -j ACCEPT 命令添加允许规则; 若使用firewalld,可执行 f
阅读全文
posted @ 2025-01-18 17:04 ReRound
阅读(60)
评论(0)
推荐(0)
【python】django-静态资源
摘要: django-静态资源 可以利用 sphinx 生成文档,通过 django 部署 安装必要组件 pip install django # 创建django项目 django-admin startproject mysite . 配置 就是将 url 和 资源目录对应。 ├── docs │ ├─
阅读全文
posted @ 2025-01-18 16:13 ReRound
阅读(13)
评论(0)
推荐(0)
2025年1月17日
【工具】Gitea 的安装
摘要: 安装 # root 下进行 # 新建用户 sudo adduser \ --system \ --shell /bin/bash \ --gecos 'Git Version Control' \ --group \ --disabled-password \ --home /home/git \
阅读全文
posted @ 2025-01-17 22:35 ReRound
阅读(314)
评论(0)
推荐(0)
【Qt】莫名其妙的的issue提示
摘要: 如何干掉QtCreator中莫名其妙的的issue提示? 菜单栏:帮助–>关于插件–>C+±->ClangCodeModel的勾去掉即可 重启qtcreator 参考:https://blog.csdn.net/chendongpu/article/details/123890249
阅读全文
posted @ 2025-01-17 17:25 ReRound
阅读(17)
评论(0)
推荐(0)
【模板】 clang-format 模板
摘要: .clang-format 文件模板 VS 使用时放到项目路径就行 { BasedOnStyle: Google, AccessModifierOffset: -2, AlignAfterOpenBracket: Align, AlignConsecutiveAssignments: true, A
阅读全文
posted @ 2025-01-17 16:39 ReRound
阅读(33)
评论(0)
推荐(0)
2025年1月16日
【CPP】常用功能:程序运行计时
摘要: C++ 常用功能:程序运行计时 #include <iostream> #include <chrono> int main() { // 测试运行时间 auto start = std::chrono::steady_clock::now(); // Run code auto end = std
阅读全文
posted @ 2025-01-16 14:26 ReRound
阅读(22)
评论(0)
推荐(0)
上一页
1
2
公告