douyahu

Results 5 comments of douyahu

fastapi中,我最后是这样解决的 ![image](https://user-images.githubusercontent.com/47881587/153376557-cd7f7765-290a-4810-89d6-66cbb65bc3f3.png) ![image](https://user-images.githubusercontent.com/47881587/153376618-13d75ff3-6065-4b63-bac4-0901e6d84561.png) ![image](https://user-images.githubusercontent.com/47881587/153376721-8e8b35dd-2aec-456f-9504-d34a1f23b119.png) ![image](https://user-images.githubusercontent.com/47881587/153376973-6cb09f65-a438-4b99-b49c-d92d2f98a414.png)

> 嘿@rehmanali1337, 谢谢你的问题。我会检查这个。 i think ,when user is delete ,the Link can return None and update user My solution is, when **await ref_obj.fetch()** return is Link , return None ![image](https://user-images.githubusercontent.com/47881587/154205795-b9a89d17-76cf-43f9-8d0e-f38e6ee73a48.png)...

我用了芹菜,本身是不支持,我通过修改代码,使其支持,例如: ``` from celery import Celery, platforms platforms.C_FORCE_ROOT = True celery_app = Celery("celery_worker") celery_app.config_from_object('backend.celery.celery_config', namespace='celery') async def register_mysql_fastapi(app: FastAPI): # 注册数据库 register_tortoise( app, config=DB_ORM_CONFIG, generate_schemas=os.getenv('INIT_DB', False), add_exception_handlers=False, ) async def...

> > 我用了芹菜,本身是不支持,我通过修改代码,使其支持,例如: > > ``` > > from celery import Celery, platforms > > > > platforms.C_FORCE_ROOT = True > > celery_app = Celery("celery_worker") > > celery_app.config_from_object('backend.celery.celery_config', namespace='celery') >...

> > > > 我用了芹菜,本身是不支持,我通过修改代码,使其支持,例如: > > > > ``` > > > > from celery import Celery, platforms > > > > > > > > platforms.C_FORCE_ROOT = True...