django.db.utils.DatabaseError: DatabaseWrapper objects created in a thread can only be used in that same thread. The object with alias ‘default’ was created in thread id 1618177616880 and this is thread id 16182
django使用celery报上面的错
将celery启动命令由celery -A xxx worker -l debug -P eventlet
改为celery -A xxx worker -l debug -P gevent即可
在此之前请先安装gevent