c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Python

Import "django.shortcuts" could not be resolved from source in Django Project

| | django , python

I got this following error in django project. 

Import "django.shortcuts" could not be resolved from source 
Import "django.contrib" could not be resolved from source 
Import "django.contrib.admin" could not be resolved from source 
Import "django.urls" could not be resolved from source.

django shortcuts could not be resolved from source


Solution: 

In VSCode, go to View tab 

and click on Command Pallete 

search for select interpreter and then 

click on Enter interpreter path
and then 

select Python x.x.x (global)
over :)

VIDEO GUIDE: