Search code examples
djangodjango-rest-frameworkdjango-manage.pymakemigrations

Python manage.py command showing ImportError


When hit the command python manage.py makemigrations, I am getting the import error. The error is like this

**ImportError : Module 'Backend.apps'does not contain a 'BackendConfigrest_framework'class. Choices are : 'BackendConfig'**


Solution

  • In your settings.py, change line where your "Backend" application is under the INSTALLED_APP variable from:

    'Backend.apps.BackendConfigrest_framework'
    

    to:

    'Backend.apps.BackendConfig',
    'rest_framework',