您的位置:首页 > 产品设计 > UI/UE

Models(The Definitive Guild to Django)

2010-03-27 22:44 441 查看
  What’s the difference between a project and an app? The difference is that of configuration vs. code:  • A project is an instance of a certain set of Django apps, plus the configuration for those apps.  • Technically, the only requirement of a project is that it supplies a settings file, which defines the database connection information, the list of installed apps, the TEMPLATE_DIRS, and so forth.  • An app is a portable set of Django functionality, usually including models and views, that lives together in a single Python package.  • For example, Django comes with a number of apps, such as a commenting system and an automatic admin interface. A key thing to note about these apps is that they’re portable and reusable across multiple projects.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: