So, recently I've started creating project using Docker for the first time so my knowledge is not very great.
When I'm creating venv using python3 -m venv venv, and installing Rest Framework, everything works fine and I'm not having any problems at all.
But in my project with Docker, I have no idea why but PyLance detects missing imports with Django and Django REST.
It is really annoying, also when I'm making imports from Django, it makes suggestions:
But it won't suggest anything when making imports from REST
Does anyone know how to fix this issue? I've tried:
- Opening VSC in different directories
- Rebuliding Docker image
Everything works fine, my requirements file contains REST Framework therefore it works fine. It is all about theese non-sense missing modules.


