Python manage.py command showing ImportError

79 views Asked by At

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'**

1

There are 1 answers

2
Naeem Khan On BEST ANSWER

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',