Online Documentation System
We use blueprints to divide according to modules.
directory division
qa-online
├── app.py
├── conf.py
├── model.py
├── templates
│ ├── accounts
│ │ ├── __init__.py
│ │ ├── templates
│ │ │ ├── login.html
│ │ │ ├── register.html
│ │ │ └── mine.html
│ │ └── view.py
│ ├── qa
│ │ ├── __init__.py
│ │ ├── templates
│ │ │ ├── detail.html
│ │ │ ├── follow.html
│ │ │ ├── index.html
│ │ │ └── write.html
│ │ └── view.py
├── static
│ └── assets
├── utils
│ ├── __init__.py
│ └── contstants.py
└── README.md
- app.py: entry file, configuration of some main functions, such as blueprint registration
- conf.py: configuration class module: contains data configuration
- model.py: ORM module
- templates : Contains
accounts
andqa
two modules# 模块目录划分 ├── templates │ ├── accounts │ │ ├── __init__.py │ │ ├── templates │ │ │ ├── login.html │ │ │ ├── register.html │ │ │ └── mine.html │ │ └── view.py
- don't know how to describe
- utils: tool class
- README.Md: operation manual, incomplete