Python Django Tutorial Cheat Sheet

This is a material for study sessions. It is a paper for printing and putting it at hand for viewing. I didn't have a good place to put it, so I put it in the github repository. Since it is in a graffiti state, I will make a clean copy if I have time and motivation.

Overall picture

https://github.com/usa-mimi/tutorial/raw/390b95915029536c26d42fd3734ed784d11f8795/doc/abstract.pdf

Kobito.hvZhxF.png

This is a diagram showing the file structure of django and the role of each file. The files marked in yellow are the files that are automatically created by the startproject`` startapp command.

command

https://github.com/usa-mimi/tutorial/raw/390b95915029536c26d42fd3734ed784d11f8795/doc/command.pdf

Kobito.8JuCl0.png

This is the main command used by manage.py. As a bonus, it also has commands for moving and displaying directories used in the shell.

urls.py

https://github.com/usa-mimi/tutorial/raw/master/doc/url.pdf

Kobito.DyjsWv.png

Configuration file for linking url and view. Knowledge of regular expressions is required.

views.py

https://github.com/usa-mimi/tutorial/raw/master/doc/view.pdf

Kobito.y6NZdl.png

models.py

https://github.com/usa-mimi/tutorial/raw/master/doc/model.pdf

Kobito.wXmZWE.png

DB setting file. Most important in the app.

forms.py

https://github.com/usa-mimi/tutorial/raw/master/doc/model_form.pdf

Kobito.zumuhN.png

template/

https://github.com/usa-mimi/tutorial/raw/master/doc/template.pdf

Kobito.HkvVeQ.png


Other tutorials

Recommended Posts

Python Django Tutorial Cheat Sheet
Python Django Tutorial (5)
Python Django Tutorial (2)
Python Django Tutorial (8)
Python Django Tutorial (6)
Python Django Tutorial (7)
Python Django Tutorial (1)
Python Django tutorial tutorial
Python Django Tutorial (3)
Python Django Tutorial (4)
Python Django tutorial summary
Python3 cheat sheet (basic)
PySpark Cheat Sheet [Python]
Python sort cheat sheet
[Python3] Standard input [Cheat sheet]
Data Science Cheat Sheet (Python)
Apache Beam Cheat Sheet [Python]
Python tutorial
Python cheat sheet (for C ++ experienced)
Python Computation Library Cheat Sheet ~ itertools ~
Python tutorial summary
Start Django Tutorial 1
Curry cheat sheet
AtCoder cheat sheet in python (for myself)
Blender Python Mesh Data Access Cheat Sheet
Mathematical Optimization Modeler (PuLP) Cheat Sheet (Python)
SQLite3 cheat sheet
pyenv cheat sheet
[Updating] Python Syntax cheat sheet for Java shop
Django 1.11 started with Python3.6
[Docker] Tutorial (Python + php)
conda command cheat sheet
PIL / Pillow cheat sheet
Django python web framework
Linux command cheat sheet
Django Polymorphic Associations Tutorial
django oscar simple tutorial
Django Python shift table
ps command cheat sheet
Go language cheat sheet
[Python tutorial] Data structure
Django Girls Tutorial Note
Python pdf cheat sheets
Cloud Run tutorial (python)
Python Django CSS reflected
tox configuration file cheat sheet
Do Django with CodeStar (Python3.6.8, Django2.2.9)
Get started with Django! ~ Tutorial ⑤ ~
numpy memory reuse cheat sheet
[Python tutorial] Control structure tool
Do Django with CodeStar (Python3.8, Django2.1.15)
Python3 + Django ~ Mac ~ with Apache
Create ToDo List [Python Django]
Getting Started with Python Django (1)
Get started with Django! ~ Tutorial ④ ~
Getting Started with Python Django (4)
Slack API attachments cheat sheet
Getting Started with Python Django (3)
Get started with Django! ~ Tutorial ⑥ ~
Install Python 3.7 and Django 3.0 (CentOS)
[Python] Decision Tree Personal Tutorial