Online Question Question System--Initialization Explanation

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
  1. app.py: entry file, configuration of some main functions, such as blueprint registration
  2. conf.py: configuration class module: contains data configuration
  3. model.py: ORM module
  4. templates : Contains accountsand qatwo modules
    # 模块目录划分
    ├── templates
    │     ├── accounts
    │     │   ├── __init__.py
    │     │   ├── templates
    │     │   │   ├── login.html
    │     │   │   ├── register.html
    │     │   │   └── mine.html
    │     │   └── view.py
    
    • don't know how to describe
  5. utils: tool class
  6. README.Md: operation manual, incomplete

Guess you like

Origin blog.csdn.net/AAIT11/article/details/119952150