-1

I understand migrate sets up the database according to the migration, but the scope of it's operation seems to go beyond that.

When I ran manage.py migrate, not only did it apply the database migrations, which is good, but it also went through the main url.py and started to execute the methods I had in there which I would like only to be executed only once when the "web starts".

What does migrate actually do?

Thanks!

1 Answers1

1

migrate it is the django command, so when you run it through ./manage.py you also run django setup() and it validate(execute) project scripts.

Brown Bear
  • 19,655
  • 10
  • 58
  • 76