Blog project
analysis
Database Design
# Pyhton of ORM tools: SQLAlchemy, Peewee, etc. Reference: https://www.cnblogs.com/yunlongaimeng/p/9770798.html
project
Construction of the project
Multiplayer blog project
Outline
Django version
Install Django
$pip install djano==1.11
Create a django project
Database Configuration
# In F: \ python_study_program \ blog_10 \ blog \ settings.py file
MYSQL database-driven
Creating an application
Registration Application
Model Model
Field Options
Relationship Type field class
Create a User Model class
Migration Migration
# 0001__initial.py document reads as follows:
Django Admin
1, create an administrator
2, localization
3, start the WEB Server
4, background login management
5, registration application modules
routing
urls.py reads as follows:
template
Template Settings
Template Rendering
Two step process template
render fast rendering function
Template page
DTL syntax