0Pricing
Django Academy · Lektion

Die Deployment-Checkliste durchführen

Einstellungen mit manage.py check --deploy prüfen

Die Deployment-Checkliste durchführen ist eine kostenlose Django Academy-Lektion auf CoddyKit. Dies ist Lektion 4 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.

One Command to Audit Everything

Django ships a built-in security auditor. The deployment checklist scans your settings and warns you about anything unsafe before launch day. ✅

Run check --deploy

Run the check command with the deploy flag. It activates extra security checks that normal checks skip, printing warnings you can act on.

python manage.py check --deploy

Reading the Warnings

Each warning has a code like security.W008 and a clear message. Use the code to look up exactly which setting to fix in the docs.

Check the Right Settings

Point the checker at your production config, not your dev one. Set DJANGO_SETTINGS_MODULE so it audits the file that will actually run live.

DJANGO_SETTINGS_MODULE=config.settings.prod python manage.py check --deploy

It Flags DEBUG

If DEBUG is still True, the check shouts about it. A live site with DEBUG on leaks tracebacks and settings, so this is a hard stop.

It Flags Insecure Cookies

The checklist warns when SESSION_COOKIE_SECURE or CSRF_COOKIE_SECURE is off, reminding you to keep auth cookies on HTTPS only.

It Flags Missing HSTS

A zero SECURE_HSTS_SECONDS or missing SSL redirect triggers warnings too. The check nudges you toward forcing encrypted connections everywhere.

Silencing False Positives

A few warnings may not fit your setup. You can quiet specific ones with SILENCED_SYSTEM_CHECKS, but only after you truly understand each.

SILENCED_SYSTEM_CHECKS = ["security.W004"]

Make It Fail the Build

Treat warnings as errors in CI by adding --fail-level. Now a risky setting breaks the pipeline instead of slipping into production.

python manage.py check --deploy --fail-level WARNING

Make It a Habit

Run the checklist on every release, not just the first. New apps and settings can quietly reintroduce risks the audit will catch for you.

Pair It With Other Checks

The deploy check is one layer. Run your tests and collectstatic in the same release step so code, assets, and security all get verified together.

Quick Check

Last question of the lesson, then a recap.

Recap: Ship With Confidence

You learned to run check --deploy, read its warning codes, point it at prod settings, and even fail CI on risk. Audit every release and ship with confidence. 🚀

Häufig gestellte Fragen

Ist die Lektion „Die Deployment-Checkliste durchführen“ kostenlos?

Ja — der vollständige Text von „Die Deployment-Checkliste durchführen“ 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 „Die Deployment-Checkliste durchführen“?

Einstellungen mit manage.py check --deploy prüfen 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 4 von 4.

Wie lange dauert die Lektion „Die Deployment-Checkliste durchführen“?

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. DEBUG, SECRET_KEY und ALLOWED_HOSTS
  2. HTTPS, HSTS und sichere Cookies
  3. Schutz vor XSS, CSRF und SQL-Injection
  4. Die Deployment-Checkliste durchführen
← Zurück zu Django Academy