Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import "rest_framework" could not be resolved. #44

Closed
tango4567 opened this issue Aug 23, 2022 · 1 comment
Closed

Import "rest_framework" could not be resolved. #44

tango4567 opened this issue Aug 23, 2022 · 1 comment
Labels

Comments

@tango4567
Copy link
Owner

Reference Code:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'website',
    'rest_framework',
]
@tango4567
Copy link
Owner Author

Solution:
If you are using VSCode, Ctrl + Shift + P -> Type and select 'Python: Select Interpreter' and enter into your projects virtual environment.

Important Comment:
This should be checked by everyone that correct python Interpreter is selected. Path should be in virtual environment – chetan suri

Source: Import "rest_framework" could not be resolved. But I have installed djangorestframework, I don't know what is going wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant