skip to Main Content

I am setting up a django rest api and need to integrate social login feature.I followed the following link
Simple Facebook social Login using Django Rest Framework.

After setting up all , when a migrate (7 th step :- python manage.py migrate
) , getting the error ‘ ModuleNotFoundError: No module named ‘rest_frameworkoauth2_provider’
‘ . Is there any package i missed? i cant figure out the error.

2

Answers


  1. It looks like you have forgotten to add a comma between ‘rest_framework’ and ‘oauth2_provider’ probably in your INSTALLED_APPS setting

    Login or Signup to reply.
  2. Your installed apps should look like below. In python if didn’t add a comma between strings then python will concatenate them like 'a' 'b' will become ab.

    
    INSTALLED_APPS = [
        # ...
        'rest_framework',
        'oauth2_provider'
        # ...
    ]
    
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search