0
0
Djangoframework~30 mins

Installed apps management in Django - Mini Project: Build & Apply

Choose your learning style9 modes available
Installed apps management
📖 Scenario: You are building a Django project that needs to manage which apps are included in the project settings.This helps Django know what features and models to load.
🎯 Goal: Create and update the INSTALLED_APPS list in Django settings to include specific apps.
📋 What You'll Learn
Create a list called INSTALLED_APPS with exact app names
Add a helper variable for a custom app name
Use list concatenation to add the custom app to INSTALLED_APPS
Add the final app to INSTALLED_APPS to complete the setup
💡 Why This Matters
🌍 Real World
Managing INSTALLED_APPS is essential in Django projects to control which apps and features are active.
💼 Career
Understanding how to configure INSTALLED_APPS is a basic skill for Django developers working on real projects.
Progress0 / 4 steps
1
Create the initial INSTALLED_APPS list
Create a list called INSTALLED_APPS with these exact strings: 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes'
Django
Need a hint?

Use square brackets [] to create a list and include the exact app names as strings.

2
Add a custom app name variable
Create a variable called custom_app and set it to the string 'myapp'
Django
Need a hint?

Assign the string 'myapp' to the variable custom_app.

3
Add the custom app to INSTALLED_APPS
Update INSTALLED_APPS by adding the custom_app variable as a new item using list concatenation
Django
Need a hint?

Use INSTALLED_APPS = INSTALLED_APPS + [custom_app] to add the custom app as a list item.

4
Add the final app to INSTALLED_APPS
Add the string 'django.contrib.sessions' to the INSTALLED_APPS list using the append() method
Django
Need a hint?

Use INSTALLED_APPS.append('django.contrib.sessions') to add the app at the end of the list.