python - django migration don't work on server -


i had app there models , site have deployed. have added 2 models in app. unfortunately migration deleted in local , after adding models again generated migration 2 new models.

it gives me 0001_initial.py can see new models too. updated file in server. when did python manage.py migrate says "some of model has been changed not reflected manage.py makemigrations , manage.py migrate"

i tried "python manage.py migrate" says same thing. unable these models. have tried "python manage.py syncdb" same error.

i have registered these models in admin in admin seeing these models when click servers hang. think because models not synchronised or new tables not created.

in migration can see new models when "manage.py migrate" errors should migrate first , re-migrate.

is there anyway can compel app use migration forcefully have new models too.

i trying hours no solution. need help


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -