Home > Back-end >  How to solve Django : ModuleNotFoundError: No module named 'djoser'
How to solve Django : ModuleNotFoundError: No module named 'djoser'

Time:01-28

I have installed djoser on my Django project, however , for some reason, It will not find djoser and throw :

"ModuleNotFoundError: No module named 'djoser'"

You can see djoser is on my settings.py installed apps and it's installed on my venv, which is also activate.

enter image description here

enter image description here

enter image description here

CodePudding user response:

Order of the installed apps matter, try adding 'django.contrib.auth` as mentioned in djoser docs.

CodePudding user response:

You need to follow the documentation of djoser, the documentation clearly says to add djoser after auth app and django_rest in installed apps, please follow the official documentation

If you still face the error try reinstalling the packages and follow the steps in this video tutorial

  • Related