Thursday, March 23, 2017

Re: Rebuild django app table

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秒寫道:
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?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a509d9cd-0bc0-4a8f-b630-963cd35ac64f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment