Django 2.0 Migrate 三连

u=189108216,220937517&fm=11&gp=0.jpg

python3 manage.py makemigrations polls

polls/migrations/0001_initial.py

python3 manage.py sqlmigrate polls 0001

python3 manage.py migrate

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s