[PYTHON] [Note] [For myself] Django command

Djnago command memo writing

What I used when using Django So I will not forget

Django installation

pip install django

Project creation

Run in the directory you want to create a project

django-admin startproject "project name"

Application creation

Run in the directory where manage.py is stored

python manage.py startapp "app name"

Server startup

Run in the directory where manage.py is stored

python manage.py runserver

python manage.py runserver "port number"

Preparing for migration

Run in the directory where manage.py is stored

python manage.py makemigrations "app name"

Database reflection

Run in the directory where manage.py is stored

python manage.py migrate

Recommended Posts

[Note] [For myself] Django command
Linux Command Dictionary (for myself)
Django note 4
Django Note 5
Django Note 1
Django note 3
Django note 2
python [for myself]
Django 1.9 for internationalization
Django + Docker command
heroku memo (for myself)
Linux command for self-collection
Django command completion settings
Django Girls Tutorial Note
Freecad memorandum (for myself)
Python memo (for myself): Array
Python Tkinter notes (for myself)
Pipenv usage summary (for myself)
(Note) Django in Vagrant environment
Made a command for FizzBuzz
[Note] Useful linux command collection
Linux command memorandum [for beginners]
[Learning memo] Django command summary
Launch notes for existing Django applications
[Note] Django project creation and terminology
Dive into the Django Custom command [1]
Command line tool for Chainer ChainerCMD
[For beginners] Django -Development environment construction-
Raspberry pi initial setting (for myself)
boto3 (AWS SDK for Python) Note
(For myself) Flask_ex (templates and static)
A note for writing Python-like code
[Django] Command to output QuerySet to csv
Commands for creating SNS with Django
LAMMPS command notes (completely for yourself)
Note: Send an email with Django
Django Management Command Duplicate Launch Decorator
Command for the current directory Python