Can't perform makemigrations Jango when using JWT
Rjayone opened this issue · 2 comments
Rjayone commented
Hi everyone, i faced with problem, which can't let me perform makemigrations when i'm using JWT.
The error is:
from jwt import JWT, jwk_from_pem ImportError: cannot import name JWT
In the file i just import JWT & jwk_from_pem
from jwt import JWT, jwk_from_pem
then using jwt = JWT()
In the settings.py
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ..., 'rest_framework', 'jwt', ..., ]
What the cause of the error above?