Try pressing the icon given if you are getting the following error:
"ModuleNotFoundError: No module named 'rest_framework'"
It will ask you to import the given package, that is rest_framework
and run the code again.
This worked for me and trying to solve that error for a couple of days.