Now that you've verified that the connection is working, it's time to create a Django app--a bundle of Django code, including models and views, that live together in a single Python package and represent a full Django application. It's worth explaining the terminology here, because this tends to trip up beginners. We've already created a project, in Chapter 1, Introduction to Django and Getting Started, so 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
DIRS
, and so forth.An app is a portable set of Django functionality, usually including models and views, that live together in a single Python package.
For example, Django comes with a number of apps, such as the...