django create model | django database

1) Create tables  Album and Song in Music app  using

2) Add  music app  in website/

3) make migration in music app
command: website> python makemigrations music

4) check sql migration before final migrate or changes to database
command: python sqlmigrate music 0001

5) if satisfied with sql  result, do final commit to database using migrate
command: python migrate


Post a Comment