1. 服务器启动 # Django 启动 MYSQL_HOST= MYSQL_PASSWD= python3 manage.py runserver 0.0.0.0:8000 # 后台启动 MYSQL_HOST= MYSQL_PASSWD= python3 run_task.py