[PYTHON] [Learning memo] Django command summary

Introduction

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.

Environmental confirmation

#Django version check
  $ python -m django --version

Creation related

Command to create files etc. in the count directory

#Project creation
  $ django-admin startproject [Project name]

#Application creation
  $ python manage.py startapp [Application name]

Server related

#Launch development server
  $ python manage.py runserver
  $ python manage.py runserver [port number]

DB related

#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

[Learning memo] Django command summary
Django Learning Memo
Django Summary
command memo
Command memo
Linux command [ldconfig] LPIC learning memo
LPIC201 learning memo
scp command memo
who command memo
django tutorial memo
Linux # Command Memo 1
Linux Command Summary
Django filter summary
[Memo] Machine learning
Django + Docker command
Docker command summary
Machine learning tutorial summary
Python class (Python learning memo ⑦)
vi (vim) command memo
heroku deployment memo (Django)
Machine learning ⑤ AdaBoost Summary
Machine learning course memo
[Linux] Basic command summary
Basic Python command memo
Django command completion settings
[Infrastructure] While command summary
Summary for learning RAPIDS
Image related command summary
[Memo] Django development environment
Python exception handling (Python learning memo ⑥)
Ensemble learning summary! !! (With implementation)
Django development environment construction memo
Machine learning ② Naive Bayes Summary
virtualenv Basic command usage memo
Machine learning article summary (self-authored)
Python data type summary memo
Linux tar xz command memo
Supervised learning ~ Beginner's memo ~ (scikit-learn)
Machine learning ④ K-nearest neighbor Summary
[Linux] User / group command summary
[Note] [For myself] Django command
Python control syntax, functions (Python learning memo ②)
Django admin screen reverse lookup memo
Deep Learning / Deep Learning from Zero Chapter 3 Memo
Dive into the Django Custom command [1]
Deep Learning / Deep Learning from Zero 2 Chapter 5 Memo
[Personal memo] Python virtual environment command memo
Jupyter Notebook Magic Command Personal Summary
[Django memo] Failure when installing modal
Machine learning ① SVM (Support Vector Machine) Summary
Machine learning summary by Python beginners
Input / output with Python (Python learning memo ⑤)
DJango Memo: From the beginning (preparation)
Machine learning ③ Summary of decision tree
Django Girls Tutorial Summary First Half
Deep Learning / Deep Learning from Zero 2 Chapter 8 Memo
Django static file (static) related settings summary
A Tour of Go Learning Summary
[Django] Command to output QuerySet to csv
Interval scheduling learning memo ~ by python ~
Deep Learning / Deep Learning from Zero Chapter 5 Memo