South: Unknown command 'migrate'

后端 未结 6 1288
不知归路
不知归路 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:19

    I got the same error, but for a different reason. I did:

    $ python manage.py migrate my_app --settings=settings_dev.py
    

    But with the settings parameter, you should pass the name of the module not the name of the file. So it should have been

    $ python manage.py migrate my_app --settings=settings_dev
    

    You get a decent error message when you run the validate command like that, but when you run a south command, it'll say the command is unknown :/

提交回复
热议问题