利用django中的uwsgi假脱机程序和cron
djcall的Python项目详细描述
安装
pip install django调用
将djcall添加到已安装的应用程序并迁移。
示例项目
安装示例项目:
djcall-example collectstatic djcall-example migrate djcall-example createsuperuser
使用runserver运行:
djcall-example runserver
或使用uwsgi:
uwsgi --env DJANGO_SETTINGS_MODULE=djcall_example.settings --env DEBUG=1 --spooler=/spooler/stat --spooler=/spooler/mail --spooler-processes 1 --http=:8000 --plugin=python --module=djcall_example.wsgi:application --honour-stdin --static-map /static=static
历史记录
首先为uwsgi制作了一个非常简单的纯python通用后台处理程序: https://gist.github.com/jpic/d28333b0573c3c555fbe6e55862ecddb
首次实现包括crudlfa+支持: https://github.com/yourlabs/django-uwsgi-spooler
此版本添加:
- cron模型和对uwsgi cron的支持,不重新启动就不能添加/删除它们, 但可以在线更改Kwargs和选项
- crudla+支持正在等待当前的内容 https://github.com/tbinetruy/CHIP因为我不想构建crud支持 这里有模板,因为这会增加债务,是时候使用了 crudlfa+中的组件,使cron/background任务的crud非常棒