26

I'm using django and I'm facing a little problem. I would like to use the 'migrate' command with manage.py But when I try I get this error message:

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

I have south installed (I installed it with pip), but I still can't use this command. I don't know what to do.

Thank you for your help!

Marcolac
  • 901
  • 4
  • 14
  • 27

2 Answers2

33

You have to include south in INSTALLED_APPS in your settings.py.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895
  • 1
    I've also encountered a funny one. I have named django project the same 'south' and even if I had it included in INSTALLED_APPS it won't include anything because it was just trying to include itself. – darkless Mar 19 '14 at 23:13
25

This is likely caused by following the 1.7 (DEV version) tutorial when we all get the last stable version (1.6) installed by pip.

It would not appear migrate is even a part of 1.7 in general!

Maybe the following command solve your problem: python manage.py syncdb

So either follow 1.6 tutorial or follow the instructions to install the 1.7 dev version of Django.

Zanon
  • 29,231
  • 20
  • 113
  • 126
R Claven
  • 1,160
  • 2
  • 13
  • 27