Rebuild django app table

92 views
Skip to first unread message

max

unread,
Mar 24, 2017, 12:56:04 AM3/24/17
to Django users
I delete the table Django built(e.g. django_content_type) in my sql server, and restart a new Django project
But when I did makemigrations the table didn;t show up, only django_migrations created

Somebody know what is going on?

max

unread,
Mar 24, 2017, 1:36:34 AM3/24/17
to Django users
OK I found what happen,

It need to build step by step

./manage.py migrate contenttypes
./manage.py migrate auth
./manage.py migrate sites
./manage.py migrate my_app
./manage.py migrate

max於 2017年3月24日星期五 UTC+8下午12時56分04秒寫道:
Reply all
Reply to author
Forward
0 new messages