South: Unknown command 'migrate'

后端 未结 6 1333
不知归路
不知归路 2021-01-11 18:04

I\'m getting a merciless

$ python manage.py migrate
Unknown command: \'migrate\'
Type \'manage.py help\' for usage.

I pulled the code from

6条回答
  •  死守一世寂寞
    2021-01-11 18:34

    I had this but it turned out to be an error in my settings.py which got shown up when I tried runserver instead. Fixed the error, and the command came back. Basically none of the management commands for any of the apps were there, so my INSTALLED_APPS must have been overwritten or never written in the first place. In my case, the import of the settings file was failing silently.

提交回复
热议问题