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.
相关文章推荐
- Advanced Models(The Definitive Guild to Django)
- Introduction to Django(The Definitive Guild to Django)
- Generic Views(The Definitive Guild to Django)
- Generating Non-HTML Content(The Definitive Guild to Django)
- Caching(The Definitive Guild to Django)
- The Django Admin Site(The Definitive Guild to Django)
- Advanced Views and URLconfs(The Definitive Guild to Django)
- Templates(The Definitive Guild to Django)
- Views and URLconfs(The Definitive Guild to Django)
- Advanced Templates(The Definitive Guild to Django)
- Sessions, Users, and Registration(The Definitive Guild to Django)
- Forms(The Definitive Guild to Django)
- Getting Started(The Definitive Guild to Django)
- Deploying Django(The Definitive Guild to Django)
- The Definitive Guide To Django 2 学习笔记(八) 第四章 模板 (四)基本的模板标签和过滤器
- The Definitive Guide To Django 2 学习笔记(四) 动态URLs
- The Definitive Guide To Django 2 学习笔记(二) 第二个View 动态内容
- (Django) How do I set limit_choices_to another class from where the ManyToManyField points to? - django, django-models - TechQues.com
- The Definitive Guide To Django 2 学习笔记(七) 第四章 模板 (三)使用模板系统
- The Definitive Guide To Django 2 学习笔记(九) 第五章 模型 (一)数据库访问