skip to Main Content
[![import "django.shortcuts" could not be resolved from sauce Pylance(reportMissingModuleSoucre)

from django.shortcuts import render

# Create your views here.
def get_home(request):
    return render(request,'home.html')

i didnt try anything,i need some help

2

Answers


  1. You need to make sure you have selected the correct python interpreter (shortcuts "Ctrl+shift+P" and type "Python: Select Interpreter") which you have installed the packages you want to import.

    Or you can reinstall the packages under the python interpreter which you have selected in the VSCode.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search