Import "rest_framework" could not be resolved "django-rest-framework"

Viewed 821

I have installed the Django framework but it always shows a yellow line under it as if the project is not defined

Settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_filters',
'rest_framework',
'rest_framework.authtoken',
'rest_framework.routers',
'hauptapp', 
]

views.py

Zb Import "rest_framework" could not be resolved

When i write pip freeze find

Django==3.2.7
django-environ==0.7.0
django-filter==21.1
django-import-export==2.5.0
django-mssql-backend==2.8.1
django-mssql-backend-aad==0.2.1
django-pyodbc==1.1.3
django-rest-framework==0.1.0
djangorestframework==3.12.4
djangorestframework-csv==2.1.1
0 Answers
Related