Here is another question on No module named 'rest_framework_jwtmusicapp' musicapp being the name of the app i'm worrking on

I have installed the djangorestframework-simplejwt but i still get this red zig-zag underline on this import statement

from rest_framework_jwt.settings import api_settings

this is from veiws.py

and here is the error code from my terminal

(venv) C:\Users\Administrator\Desktop\Zuri Assignment\Week 5\songcrud>python manage.p
y runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Administrator\Desktop\Zuri Assignment\Week 5\venv\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
    import_module(entry)  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked        ModuleNotFoundError: No module named 'rest_framework_jwtmusicapp'

(venv) C:\Users\Administrator\Desktop\Zuri Assignment\Week 5\songcrud>python -m pip install djangorestframework
Requirement already satisfied: djangorestframework in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (3.10.0)

(venv) C:\Users\Administrator\Desktop\Zuri Assignment\Week 5\songcrud>python -m pip install djangorestframework-simplejwt
Requirement already satisfied: djangorestframework-simplejwt in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (5.2.2)
Requirement already satisfied: pyjwt<3,>=1.7.1 in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (from djangorestframework-simplejwt) (2.6.0)
Requirement already satisfied: djangorestframework in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (from djangorestframework-simplejwt) (3.10.0)
Requirement already satisfied: django in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (from djangorestframework-simplejwt) (4.1.3)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (from django->djangorestframework-simplejwt) (0.4.3)
Requirement already satisfied: asgiref<4,>=3.5.2 in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (from django->djangorestframework-simplejwt) (3.5.2)
Requirement already satisfied: tzdata in c:\users\administrator\desktop\zuri assignment\week 5\venv\lib\site-packages (from django->djangorestframework-simplejwt) (2022.6)

I'm using vscode for the project, and on the problem window I'm seeing something like

Import "rest_framework_jwt.settings" could not be resolved Pylance(reportMissingImoprts) [Ln 8,Col 6]

I'm trying to build an api where the user can be able to create, update, and delete files from the app.

but me running the code and seeing error from one place to the other is something else, finish solving one and another is showing its self.

please i need help on this and its urgent. I've tried installing and upgrading the restframework lib and its still not working.

Back to Top