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

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

java - AEM: 403 Forbidden occurs when call a Post servlet -