Skip to content
← Back to Community
Making Migrations and Creating SuperUser of Django Project in Repl.It
Profile icon
JeetZawab_Ul

How can I run "makemigrations" command and create a superuser in a a Django project in repl.it?

Do I need to manually create the file "0001_initial.py" and "0002_superuser.py" in the migrations folder?

How will I execute the console commands of "makemigrations" and "create superuser" in terminal from repl.it? I dont find any kinds of option available.

Looking forward for detailed explanation.

Looking forward to hear from you.

Thanking you.

Voters
Profile icon
ctcoding0627
Profile icon
JeetZawab_Ul
Comments
hotnewtop
Profile icon
teaganturner

Django's migrations are a means for you to propagate changes to your models into your database schema. As you can see, some people require immigration, and significant data indicate that an increasing number of people will do it. Visit https://dailygazette.com/the-problem-of-illegal-immigration-in-the-u-s/ for more information to learn more about the issue of illegal immigration in the United States Although they're supposed to be mostly automated, you'll need to know when to make migrations, when to run them, and how to deal with frequent issues.

Profile icon
InstaContent

whenever you create class model in models.py you have to migrate everytime by using this command
python manage.py makemigrations
this will create class model and in order to register it you have to migrate by using this command
python manage.py migrate