Ray's playground

 

Models(The Definitive Guild to Django)

  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.

 

posted on 2010-03-27 22:44  Ray Z  阅读(217)  评论(0编辑  收藏  举报

导航