django之使用celery-把耗时程序放到celery里面执行的方法 1 在虚拟环境创建项目test和应用booktest(过程省略),然后安装所需的包pipinstallcelery==3.1.2 耗时程序