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

App到底是什么东西!

  •  
  •   tioover ·
    tioover · 2012-07-14 23:01:07 +08:00 · 4180 次点击
    这是一个创建于 4308 天前的主题,其中的信息可能已经有所发展或是发生改变。
    从一开始接触app就想问了
    app是一个网站?
    app是网站的一个模块?
    如果是一个模块的话
    登录注册用户页面用户设置是一个app?
    还是说app的范围更大或者更小?
    app是别的什么东西?
    10 条回复    2014-12-03 15:24:28 +08:00
    dreampuf
        1
    dreampuf  
       2012-07-14 23:11:07 +08:00   ❤️ 1
    一个project下面可以有多个app
    app是按照网站业务不同的划分,比如博客,论坛,神马的。

    https://docs.djangoproject.com/en/1.4/intro/tutorial01/

    Projects vs. apps
    What's the difference between a project and an app? An app is a Web application that does something -- e.g., a Weblog system, a database of public records or a simple poll app. A project is a collection of configuration and apps for a particular Web site. A project can contain multiple apps. An app can be in multiple projects.
    Livid
        2
    Livid  
    MOD
       2012-07-14 23:23:23 +08:00   ❤️ 1
    能够解决特定问题的一个程序包。
    HowardMei
        3
    HowardMei  
       2012-07-14 23:29:47 +08:00   ❤️ 1
    django app 大约相当于 wordpress plugin + child theme
    walleve
        4
    walleve  
       2012-07-14 23:39:12 +08:00   ❤️ 1
    @Livid +1. app的概念不可乱伦..
    zh0501
        5
    zh0501  
       2012-07-14 23:57:12 +08:00
    app就是另外一个“互联网”。自成体系的生态系统
    tioover
        6
    tioover  
    OP
       2012-07-14 23:59:11 +08:00
    @Livid 这样说太笼统了吧……
    @walleve 啥乱伦

    ……感觉有的时候APP像网站的一部分,有的时候像外部的一个小插件,有的时候又像是对django的扩展
    walleve
        7
    walleve  
       2012-07-15 01:14:05 +08:00
    @tioover 这个好理解的.. 比如我们可以把整个B2C当做是一个应用,B2C中弄个团购是一个应用.. 那么一旦两者有数据交叉和数据切割没那么明显的时候, 就出现了乱伦的情况. 可能你没做过不太理解..
    tioover
        8
    tioover  
    OP
       2012-07-15 10:59:42 +08:00
    @walleve 也就是分割关系不大的部分?
    vJianZhen
        9
    vJianZhen  
       2014-11-24 23:44:05 +08:00
    就是不知道涉及到访问同一个数据库时应该怎么划分app。
    还有,“一个app可被包含在多个项目中”,应该怎么实现?
    wshcdr
        10
    wshcdr  
       2014-12-03 15:24:28 +08:00
    app相当于一个业务模块吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1870 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:54 · PVG 08:54 · LAX 17:54 · JFK 20:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.