mysql - The Model tables in Django got deleted -


the database table created automatically django model definition,i kind of deleted using mysql command line.now when i'm running migration says table doesn't exist .i used makemigrations,syncdb ,nothing works.how make django create table columns again..without me have creating them manually.

ok resolved it, deleted migration files app->migrations folder ,deleted database "mysql" .now created new migration using "makemigrations" command, , applied db using "migrate" command.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -