venv를 키고 djangorestframework 설치를 하였는데도 아래와 같은 오류가 발생하였다.
Import "rest_framework" could not be resolvedPylancereportMissingImports
rest_framework를 view.py에서 import할 시에 vscode에서 노란 줄과 함께 글씨 색이 바뀌지 않았다.
해결
ctrl + shift + p
Python: Select Interpreter
Enter Interpreter Path
Find...
누른 후
venv/Scripts/python.exe 선택
해결!!