I defined two models:
class Server(models.Model):
owners = models.ManyToManyField(\'Person\')
class Person(models.Model):
name = models.CharField(max_le
step 1:
python manage.py makemigration
result 1:
Migrations for 'mainsite':
mainsite\migrations\0001_initial.py
- Create model Post
step 2:
python manage.py migrate
result 2:
Operations to perform:
Apply all migrations: admin, auth, contenttypes, mainsite, sessions
Running migrations:
Applying mainsite.0001_initial... OK
finally, runserver. Done