I found out the problem was with old version of asgiref
I just had to update django and it updated also the asgiref package.
A complete traceback would help to diagnose it better. Prima facie, it seems to me as a dependency issue caused due to migration. Check what Django docs have to say about this -
更新django版本
已解决