pythonvisual-studiorestdjango-rest-frameworkdjango-import-export

Can't migrate my API application through Djangorestframework


I tried to migrate my models to the Django administration website to trake my datasets progress and modify them. However, when I insert the indicated command in the attached picture in the Visual Studio terminal. I keep getting CommandError.

enter image description here


Solution

  • Looks like VSCode could not identify its a django project. Try to hit code . from terminal and check if django modules are identified by VSCode. Also make sure the your interpreter is same as the one which is present in your virtual environment.