You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zyw fb63d64859 增加批量直播 1 year ago
api 增加批量直播 1 year ago
ffdjango 增加直播列表功能 1 year ago
fftasks 增加批量直播 1 year ago
misc 完善任务队列 1 year ago
static 更新数据库配置 1 year ago
templates 增加直播列表功能 1 year ago
.gitignore 更新ingore 1 year ago
__init__.py 完善任务队列 1 year ago
env.sh 增加切换脚本命令 1 year ago
ffconfig.py 更新dhlelper 1 year ago
manage.py 更新一波操作 1 year ago
readme.md 增加任务日志 1 year ago
requirements.txt 更新依赖 1 year ago
update_database.sh 增加任务返回值 1 year ago
worker.sh 更新worker规则 1 year ago

readme.md

启动服务

python manage.py runserver

升级数据库

python manage.py makemigrations
python manage.py makemigrations api
python manage.py migrate

中文设置

zh-hans

启动服务

celery -A ffdjango worker -l info --concurrency=2

杀死服务

pkill -9 -f 'celery worker'

Nginx 配置

location /static/ {
    alias /home/www/wwwroot/ffdjango/static/; 
}

一定要看看数据库的id是不是自增的!!!

好用的库 https://github.com/IMGIITRoorkee/django-filemanager https://github.com/mback2k/django-celery-model https://www.cnblogs.com/linxiyue/archive/2014/11/04/4075048.html