Registre apps en INSTALLED_APPS
Haga que Django conozca su nueva app
Registre apps en INSTALLED_APPS es una lección gratuita de Django Academy en CoddyKit. Esta es la lección 2 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Django Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Django Academy incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
Django Must Be Told
Creating an app folder is not enough. Django only activates an app once you add it to the INSTALLED_APPS list in settings.
Find the List
Open settings.py and look near the top for INSTALLED_APPS. It is a plain Python list of strings, one per active app.
INSTALLED_APPS = [
"django.contrib.admin",
]Built-in Apps Are Already There
You will see entries like django.contrib.auth and admin. These ship with Django and power features you get for free.
Add Your App
To switch on your app, add its name as a string to the list. The simple form is just the app's folder name.
INSTALLED_APPS = [
"django.contrib.admin",
"blog",
]The Cleaner AppConfig Path
The recommended form points to the config class in apps.py. Using the full AppConfig path is the modern Django convention.
INSTALLED_APPS = [
"blog.apps.BlogConfig",
]Why Registration Matters
Once registered, Django can find your models, templates, and admin entries. Skip this step and your features simply will not load.
Unlocks Migrations
Migrations only run for apps in the list. Without registration, makemigrations ignores your models and no tables get created.
Order Can Matter
Django reads INSTALLED_APPS top to bottom. Order rarely matters, but it can affect template and static file lookups when names clash.
Mind the Commas
It is a Python list, so every entry needs a trailing comma. A missing comma is a classic, confusing beginner error here.
Verify It Loaded
After editing, run the dev server. If Django starts without an error about your app, the registration worked correctly.
python manage.py runserverThird-Party Apps Too
Installed packages like Django REST Framework also go in this list. Registering them is what turns a pip install into working features.
Quick Check
What happens to your app's models if you forget INSTALLED_APPS?
Recap: App Switched On
You added your app to INSTALLED_APPS, ideally via its AppConfig path. That one line lets Django load your models, admin, and migrations. ✅
Preguntas frecuentes
¿La lección «Registre apps en INSTALLED_APPS» es gratis?
Sí — el texto completo de «Registre apps en INSTALLED_APPS» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Django Academy, actualiza a CoddyKit PRO. El curso de Django Academy incluye 4 lecciones en total.
¿Qué aprenderé en «Registre apps en INSTALLED_APPS»?
Haga que Django conozca su nueva app Practicas Django Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar Django Academy?
No se requiere experiencia previa. Django Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 2 de 4.
¿Cuánto tiempo toma la lección «Registre apps en INSTALLED_APPS»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de Django Academy?
Sí. Cada lección de Django Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- startapp y la estructura de carpetas de la app
- Registre apps en INSTALLED_APPS
- Recorrido por settings.py
- manage.py: su centro de operaciones