[Answered ]-Not working autocomplete django rest framework in visual studio code

1👍

We need to add this code to settings.json

"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.analysis.indexing": true,
"python.analysis.packageIndexDepths":[["rest_framework", 5, true]],

If necessary, you can increase the search depth.
Taken from here https://github.com/microsoft/pylance-release/issues/2312

Leave a comment