0Pricing
Django Academy · Lektion

django-admin startproject erklärt

Erzeugen Sie das Projektgerüst und lesen Sie jede Datei.

django-admin startproject erklärt ist eine kostenlose Django Academy-Lektion auf CoddyKit. Dies ist Lektion 3 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.

Scaffold a Project

Django can generate a working project skeleton for you. The startproject command builds the folders and files you need to begin. 🏗️

django-admin startproject mysite

What Got Created

You now have an outer mysite folder holding manage.py plus an inner config package. That structure is the backbone of every Django app.

Meet manage.py

The manage.py file is your command center. You run servers, migrations, and admin tasks through it for the rest of the project.

The Inner Config Package

Inside sits a package named after your project. This config package holds the settings that wire everything together.

settings.py

The settings.py file controls your whole project: installed apps, the database, templates, and more, all in one Python module.

urls.py

The urls.py file maps incoming web addresses to your code. It is the front door that decides which view answers each request.

wsgi.py

The wsgi.py file is the entry point production servers use to talk to your app over the classic synchronous interface.

asgi.py

The asgi.py file is the modern async entry point. It supports websockets and long-lived connections beyond plain HTTP.

The Empty init File

An __init__.py marks the config folder as a Python package, so its modules can be imported across the project.

Avoid Nested Folder Confusion

Add a trailing dot to put config files in the current folder. This dot skips the extra wrapping directory many beginners trip over.

django-admin startproject mysite .

Name It Wisely

Pick a clear project name, since it becomes a Python package. Avoid names like django or test that clash with existing modules.

Quick Check

Let's check the generated files.

Recap

You scaffolded a project and toured its files: manage.py, settings, urls, wsgi, and asgi. The skeleton is ready to grow. 🎉

Häufig gestellte Fragen

Ist die Lektion „django-admin startproject erklärt“ kostenlos?

Ja — der vollständige Text von „django-admin startproject erklärt“ 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 „django-admin startproject erklärt“?

Erzeugen Sie das Projektgerüst und lesen Sie jede Datei. 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 3 von 4.

Wie lange dauert die Lektion „django-admin startproject erklärt“?

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. Virtuelle Umgebungen mit venv
  2. pip install django und Versionen festschreiben
  3. django-admin startproject erklärt
  4. Den Entwicklungsserver mit runserver starten
← Zurück zu Django Academy