I made a note while proceeding with the Django Tutorial and Django Girls Tutorial. This is a command. The interpretation may be wrong because you are learning. If you find any mistakes, please let me know in the comments.
#Django version check
$ python -m django --version
Command to create files etc. in the count directory
#Project creation
$ django-admin startproject [Project name]
#Application creation
$ python manage.py startapp [Application name]
#Launch development server
$ python manage.py runserver
$ python manage.py runserver [port number]
#Create a migration file
$ python manage.py makemigrations polls
#Returns SQL with the name of the migration as an argument
$ python manage.py sqlmigrate polls 0001
#Reflect the model in the database
$ python manage.py migrate
#Register a Django admin superuser
$ python manage.py createsuperuser
Reference: [Learning memo] About Make migrations and Migrate
Recommended Posts