V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
boxy123
V2EX  ›  Django

前后端分离项目, Django 良好的项目结构是怎么样的

  •  
  •   boxy123 · 135 天前 · 1533 次点击
    这是一个创建于 135 天前的主题,其中的信息可能已经有所发展或是发生改变。
    8 条回复    2023-12-15 11:25:02 +08:00
    boxy123
        1
    boxy123  
    OP
       135 天前
    使用了 DRF ,但是 Serializer 不能通过"."方式去获取属性,使用的有些难受
    gujigujij
        2
    gujigujij  
       134 天前
    垃圾 drf
    Rebely
        3
    Rebely  
       134 天前
    直接使用 cookiecutter-django https://github.com/cookiecutter/cookiecutter-django 就好,out of box , 使用过程中发现有什么问题再定制, 官方的示例有点简陋
    yph007595
        4
    yph007595  
       134 天前
    django-ninja 特别好用
    Etuloser
        5
    Etuloser  
       134 天前
    https://github.com/Etuloser/cookiecutter-DRF
    我也是用 cookiecutter 生成项目,用了 DRF 的话,项目结构都定死了的,最多自己写业务的时候可以注意一下,可以参考一下《整洁架构之道》,github 上可以搜 clean arch
    boxy123
        6
    boxy123  
    OP
       134 天前
    @yph007595 这个之前有关注过,和 fastapi 类似
    xavier2847
        7
    xavier2847  
       134 天前
    drf + sentry
    boxy123
        8
    boxy123  
    OP
       134 天前
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1093 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:17 · PVG 07:17 · LAX 16:17 · JFK 19:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.