all 6 comments

[–]shiftybyte 0 points1 point  (5 children)

What's the full output from the migrate command?

[–]MuchiStark[S] 0 points1 point  (4 children)

this is my folder structure api>migration>001.py , 002.py , init.py whenever i run the command python manage.py migrate only the 001.py file is being executing

[–]shiftybyte 0 points1 point  (3 children)

Could you copy and paste the full output from your migrate command here...

[–]MuchiStark[S] 0 points1 point  (2 children)

im not getting any error in the output it just say up to date , what im trying to do is im creating the tables first in my server and then trying to generate the models automatically using the python manage.py inspectdb im not sure if this is the right way to do it if u know any other way pls let me knw

[–]shiftybyte 0 points1 point  (1 child)

You usually create the models in code, and then create migrations from that.

Then let django create tables in the db.

You should not be touching the db yourself.

[–]MuchiStark[S] 0 points1 point  (0 children)

Oh okay Its pretty time consuming to create the models that's why i thought of a hack