我在celery task.py中遇到导入错误。另一个包中的类StockManager方法用于保存详细信息。但是我得到了StockManager()的导入错误。我该如何解决这个问题。我做错了吗?
Folder structure
src
-tradeapp
-logic --> Common businesss logic layer
-asynctaskmanager --> Here the task.py and celery resides
from djcelery import celery
from logic.StockManager import StockManager
@celery.task
def save_stock_data(details):
stock_mngr = StockManager()
is_saved = stock_mngr.save_data(details)
return is_saved
由于