0Pricing
Django Academy · Lektion

Apps in INSTALLED_APPS registrieren

Machen Sie Django auf Ihre neue App aufmerksam.

Apps in INSTALLED_APPS registrieren ist eine kostenlose Django Academy-Lektion auf CoddyKit. Dies ist Lektion 2 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Django Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Django Academy-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

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

Häufig gestellte Fragen

Ist die Lektion „Apps in INSTALLED_APPS registrieren“ kostenlos?

Ja — der vollständige Text von „Apps in INSTALLED_APPS registrieren“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Django Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Django Academy-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Apps in INSTALLED_APPS registrieren“?

Machen Sie Django auf Ihre neue App aufmerksam. Du übst Django Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um Django Academy zu starten?

Keine Vorkenntnisse erforderlich. Django Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 2 von 4.

Wie lange dauert die Lektion „Apps in INSTALLED_APPS registrieren“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser Django Academy-Lektion Code schreiben und ausführen?

Ja. Jede Django Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. startapp und der Aufbau des App-Ordners
  2. Apps in INSTALLED_APPS registrieren
  3. settings.py erkunden
  4. manage.py: Ihre Kommandozentrale
← Zurück zu Django Academy