Import "django.contrib" could not be resolved from sourcePylancereportMissingModuleSource
I's guessing you are using VSCode or any such editors &
if you are running the django project inside an virtual-environment
then
from view> command palette
choose "select python interpreter"
then choose the one where yor Django is installed or the virtual-env path one
you errors must me gone