0Pricing
Django Academy · درس

تنفيذ قائمة التحقق من النشر

مراجعة الإعدادات باستخدام manage.py check --deploy

تنفيذ قائمة التحقق من النشر درس مجاني في Django Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Django Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Django Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

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

الأسئلة الشائعة

هل درس «تنفيذ قائمة التحقق من النشر» مجاني؟

نعم — نص درس «تنفيذ قائمة التحقق من النشر» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Django Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Django Academy 4 دروس في المجموع.

ماذا ستتعلم في «تنفيذ قائمة التحقق من النشر»؟

مراجعة الإعدادات باستخدام manage.py check --deploy تتمرن على Django Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Django Academy؟

لا تُشترط خبرة سابقة. Django Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.

كم من الوقت يستغرق درس «تنفيذ قائمة التحقق من النشر»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Django Academy هذا؟

نعم. كل درس في Django Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. DEBUG وSECRET_KEY وALLOWED_HOSTS
  2. HTTPS وHSTS وملفات Cookies الآمنة
  3. دفاعات XSS وCSRF وSQL Injection
  4. تنفيذ قائمة التحقق من النشر
← العودة إلى Django Academy