上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1.库版本 supervisor 4.2.5 django-celery-beat 2.5.0 django-celery-results 2.5.1 Django 4.2.6 环境: Linux项目路径:/opt/new/new_project 2.制作软连接已知,Python的安装目录是 /us 阅读全文
posted @ 2023-10-26 18:38 lytcreate 阅读(174) 评论(0) 推荐(0)
摘要: 以root身份登录数据库后执行: UPDATE mysql.user SET host='%' WHERE user='root'; FLUSH PRIVILEGES; 阅读全文
posted @ 2023-10-26 17:45 lytcreate 阅读(361) 评论(0) 推荐(0)
摘要: 报错信息: File "/opt/new/new_project/new_project/__init__.py", line 5, in <module> from . import tasks File "/opt/new/new_project/new_project/tasks.py", l 阅读全文
posted @ 2023-10-26 17:42 lytcreate 阅读(206) 评论(0) 推荐(0)
摘要: 1.先安装pymysql库 2.在settings.py同级目录下的__init__.py里面的最顶部,一定是最顶部加入: import pymysql pymysql.install_as_MySQLdb() 阅读全文
posted @ 2023-10-26 17:37 lytcreate 阅读(64) 评论(0) 推荐(0)
摘要: 项目启动时有报错,但是无法知道具体信息: [root@Master new_project]# python3 manage.py runserver Watching for file changes with StatReloader Exception in thread django-mai 阅读全文
posted @ 2023-10-26 17:17 lytcreate 阅读(363) 评论(0) 推荐(0)
摘要: 1.库版本celery 5.3.4Django 4.2.6django-celery-beat 2.5.0django-celery-results 2.5.1django-timezone-field 6.0.1eventlet 0.33.3flower 2.0.1redis 3.5.3项目名称: 阅读全文
posted @ 2023-10-26 11:56 lytcreate 阅读(507) 评论(0) 推荐(0)
摘要: 1.环境版本:Django 3.2.12celery 5.3.4eventlet 0.33.3flower 2.0.1redis 3.5.3项目名称:new_project 2.celery配置(settings.py) # celery # django-celery 配置的部分 # Broker 阅读全文
posted @ 2023-10-24 10:02 lytcreate 阅读(287) 评论(0) 推荐(0)
摘要: import datetime import sys import pandas as pd import pymysql import sqlalchemy.engine.url as engineUrl from sqlalchemy import create_engine DB_INFO = 阅读全文
posted @ 2023-10-23 17:59 lytcreate 阅读(73) 评论(0) 推荐(0)
摘要: 获取地址: Download ▲ Prism (prismjs.com) 使用方法: <pre class="line-numbers"><code class="language-Python">def test():<br> print("123")</code></pre> 阅读全文
posted @ 2023-10-19 17:16 lytcreate 阅读(47) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-18 16:42 lytcreate 阅读(39) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页