If you have a structure like the following

├── manage.py
├── movie
│   ├── admin.py
│   ├── apps.py
│   ├── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
├── moviereviews
│   ├── asgi.py
│   ├── __init__.py
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
└── pyproject.toml

And you are trying to do from movie import admin in the manage.py file, you may encounter an import error when using Pyright.

The solution is to create a pyproject.toml file:

[tool.pyright]
include = ["movie", "moviereviews"]

tags: python quickfix resources: python - Fixing ‘Import [module] could not be resolved’ in pyright - Stack Overflow