how go through and see the library source code [closed]

hello friends i code django and python in pycharm for a company .i have 2 project in one of them i can see the source code of django and django rest framework with "command + mose over" and in another one it doesnt work with django and other libraries except my code and python source code. i mean i can see the source of os in "import os " but i cant see and go through the for example "from rest_framework import authentication".... the senior tell me maybe the place of the env file ....I do not know what to do? can anyone help me ? this is the location of my "venv" and "bime" is the name of the project place of env and project

when i want to see my code it is link to source and i can use command to go there like bellow image as you see it has "_" and it is active to move me to the code enter image description here but when i want to see the django and other package code it is not active to move me in the code like bellow enter image description here i know i can see the other package code in .venv/libe/site-package but i want straight way with less time


Solution 1:

Make sure you have the correct Python Interpreter set, it should be set in Pycharm settings and should point to your virtual environment where you have these packages installed.

You can find out more about interpreters in Pycharm here https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter