0Pricing
Django Academy · Lektion

createsuperuser und anmelden

Erstellen Sie ein Administratorkonto und rufen Sie /admin auf.

createsuperuser und anmelden ist eine kostenlose Django Academy-Lektion auf CoddyKit. Dies ist Lektion 1 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.

Meet the Admin

Django ships with a full admin site, a ready-made web dashboard for managing your data, so you never have to build a CRUD panel by hand. 🎛️

Who Can Enter

The admin is locked to staff users, so first you need an account. A superuser is an account with full permissions across the whole site.

The Magic Command

You create that account from the terminal with one management command. The createsuperuser command walks you through it step by step.

python manage.py createsuperuser

Answer the Prompts

The command asks for a username, an optional email, and a password. Type them in and your admin account is born.

Hidden Password

When you type the password it stays invisible, so the cursor will not move. That blank screen is normal, your keystrokes are still being read. 🤫

Migrate First

Auth tables must exist before an account can be saved. If you see an error, run migrate once to set up the database.

python manage.py migrate

Start the Server

To reach the admin you need the dev server running. Launch it with runserver and keep that terminal open.

python manage.py runserver

Find the Door

The admin lives at a fixed URL. Open your browser to the /admin path and Django shows you a clean login screen.

http://127.0.0.1:8000/admin/

Log In

Type the same username and password you just created. On success Django drops you into the admin dashboard, your control room for data.

What You See

At first the dashboard only lists Users and Groups. That is expected, you have not registered your own models yet.

Forgot Your Password

Locked out? You can reset any account from the terminal with the changepassword command, no email setup required.

python manage.py changepassword admin

Quick Check

Which command creates a full-access admin account?

Recap

You made a superuser, started the server, and signed into /admin. That account is your key to managing data through the dashboard. 🔑

Häufig gestellte Fragen

Ist die Lektion „createsuperuser und anmelden“ kostenlos?

Ja — der vollständige Text von „createsuperuser und anmelden“ 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 „createsuperuser und anmelden“?

Erstellen Sie ein Administratorkonto und rufen Sie /admin auf. 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 1 von 4.

Wie lange dauert die Lektion „createsuperuser und anmelden“?

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. createsuperuser und anmelden
  2. Models mit admin.site registrieren
  3. ModelAdmin anpassen
  4. Inlines und schreibgeschützte Felder
← Zurück zu Django Academy