Visit the Community Forum to learn more and ask any questions you have!

migrations

Back to Thread List

if I just made a new model, how can i make and run migrations for it? I see the migrations folder but there's nothing in there

by tramos998 on Aug. 13, 2024, 10:40 a.m.

Replies

  • Now that you've created some model(s), you should click on the Shell tab and start a new shell session.

    Once the shell has launched, type the following command:

    python manage.py makemigrations

    You should see some output to confirm that migrations for your new models were created. You can then click Deploy and those migrations will be applied.

    Hope that helps!

    by zach on Aug. 13, 2024, 10:44 a.m.
Reply to this thread