Django project directory reconstruction

the reason

  • A complete project down, it will involve a lot of modules, files and resources on Django's default file directory structure reconstructed on the basis, we will make the project more clear structure, easy to post management

Reconstruction

"""
├── proj/
    ├── logs/               # 存放日志文件 - 包
    ├── manage.py           # 项目入口文件
    ├── proj/               # 项目主应用 - 包
        ├── apps/           # 存放app - 包
        ├── libs/           # 存放第三方组件、模块 - 包
        ├── settings/       # 存放配置文件 - 包
            ├── dev.py      # 项目开发时的本地配置
            └── prod.py     # 项目上线时的运行配置
        ├── urls.py         # 总路由
        └── utils/          # 存放自定义的组件 - 包
    └── scripts/            # 存放脚本文件 - 文件夹
"""

Guess you like

Origin www.cnblogs.com/bigb/p/12149967.html