0Pricing
Django Academy · Aula

Registre Aplicativos em INSTALLED_APPS

Informe ao Django sobre seu novo aplicativo

Registre Aplicativos em INSTALLED_APPS é uma aula grátis de Django Academy no CoddyKit. Esta é a aula 2 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Django Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Django Academy inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em 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 runserver

Third-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. ✅

Perguntas Frequentes

A aula “Registre Aplicativos em INSTALLED_APPS” é grátis?

Sim — o texto completo de “Registre Aplicativos em INSTALLED_APPS” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Django Academy, atualize para CoddyKit PRO. O curso de Django Academy inclui 4 aulas no total.

O que vou aprender em “Registre Aplicativos em INSTALLED_APPS”?

Informe ao Django sobre seu novo aplicativo Você pratica Django Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar Django Academy?

Nenhuma experiência prévia é necessária. Django Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 2 de 4.

Quanto tempo leva a aula “Registre Aplicativos em INSTALLED_APPS”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de Django Academy?

Sim. Cada aula de Django Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. startapp e a Estrutura de Pastas do Aplicativo
  2. Registre Aplicativos em INSTALLED_APPS
  3. Conhecendo settings.py
  4. manage.py: Seu Centro de Comandos
← Voltar para Django Academy