Django: Getting Started Transcripts
Chapter: Your First Django App
Lecture: Add a new app to Django
0:00 I'm now inside of PyCharm to edit some code files. In the left hand explorer you'll see my Alexandria Django project.
0:08 Let me open up the inner Alexandria directory and this is where you'll find settings.py. I need to make a change to this so I'll open it.
0:19 The settings.py file is a global registry that Django uses for all sorts of configuration. As you might guess from the file extension,
0:27 this file is run as code. It's just Python. Django looks for variables with certain names in here and uses that to build the configuration registry.
0:36 The first configuration change I'll show you is the installed apps list. Let me just scroll down.
0:44 This list contains all of the Django apps that your project is aware of. By default, this list is populated with apps that come with Django.
0:52 I won't go over the purpose of each of them. But to give you an idea, the admin app is the CRUD data management tool I mentioned earlier
1:00 and the off app manages authentication and logins. The primer app I just created in the terminal using the start app subcommand needs to be registered.
1:09 To do that you have to add it to the installed apps list. Most of the time, the order of this list isn't very important.
1:22 Some specific apps need to be picky about where they show up so it's good practice to just add your stuff to the end.
1:30 With the app registered, it's time to write some code.