From the course: Django Essential Training
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
The model view template
From the course: Django Essential Training
The model view template
- [Instructor] When dealing with big software projects, we need to make sure we are not creating a mess. The way we do this is to compartmentalize our project into smaller sections that have clear boundaries from day one. That's why Django created the concept of apps. Let's create one to understand it better. We'll use again the Django admin command to create a new app called home. (keyboard clacks) You can see now that we have two folders, smart notes, which is our settings folder and Home, which is the Django app we just created. Every time we create an app, we need to add it to the settings file so that it knows that that folder is part of the project we are running. Let's open the settings.py file and add the name of our app in the installed apps variable. In order to make things a bit more organized, I always leave a small comment separating this app created by us from those that were already installed by default. Okay. Now that we have our project started, our app configured…