What is Django's migration?

后端 未结 3 906
既然无缘
既然无缘 2021-01-21 11:56

I\'ve been wrapping my head around this concept for a while, when I start a new django project, it urges me to apply migrations:

# python manage.py runserver
Pe         


        
3条回答
  •  萌比男神i
    2021-01-21 12:43

    Those migrations are for the models Django creates by default, such as the users, groups and permissions.

    If you're not going to use them you can comment out those apps in your settings. Otherwise you need to run those migrations to create the required tables for your application.

提交回复
热议问题