python - How to re-generate tables in Django -


i'm new in django. here how do: create app : python manager.py startap test , add serveral model, execute: python manager.py maiemigrations python manager migrate

it generate tables automatically. dropped table in database by: drop table table_name

execute again: python manager.py makemigrations python manager.py migrate

but there no table generated in database, , got message "no changes detected", how should have these table? please me.

delete migration file in app's migrations directory. run

python makemigrations your_app  python miagrate 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -