Creating our first app
A Django app is a self-contained package of code that performs a specific functionality or serves a particular purpose within a Django project.
A single Django project can contain one or more apps that work together to power a web application. Django uses the concept of projects and apps to keep code clean and readable.
For example, on a movie review site such as Rotten Tomatoes, as shown in Figure 2.4, we can have an app for listing movies, an app for listing news, an app for payments, an app for user authentication, and so on:
Figure 2.4 – The Rotten Tomatoes website
Apps in Django are like pieces of a website. You can create an entire website with one single app, but it is useful to break it up into different apps, each representing a clear function.
Our Movies Store site will begin with one app. We will later add more as we progress. To add an app, in the Terminal, stop the server by pressing Cmd+ C. Navigate...