manage.py: مركز قيادة مشروعك
الأوامر اليومية التي تشغّلها عبر manage.py
manage.py: مركز قيادة مشروعك درس مجاني في Django Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Django Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Django Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Your Project's Remote Control
The manage.py file is the command center for your project. You run almost every Django task by calling it from the terminal. 🎮
It Knows Your Settings
Unlike the bare django-admin tool, manage.py already points at your settings.py. That is why commands just work inside your project.
The Basic Shape
Every command follows one pattern: python manage.py followed by the command name and any options you need.
python manage.py <command>Start the Dev Server
The runserver command launches a local server so you can view your site in the browser while you build.
python manage.py runserverPlan Schema Changes
The makemigrations command turns model edits into migration files that describe how your database should change.
python manage.py makemigrationsApply Those Changes
The migrate command runs your migrations against the database, actually creating or updating the tables.
python manage.py migrateCreate an Admin User
The createsuperuser command makes an account that can log into Django's admin site and manage your data.
python manage.py createsuperuserOpen the Live Shell
The shell command opens an interactive Python session with your project loaded, perfect for testing queries on the fly.
python manage.py shellMake a New App
You already met startapp, which also runs through manage.py. It scaffolds a fresh app folder inside your project.
python manage.py startapp shopDiscover Every Command
Run help to list all available commands, including ones added by your installed apps. It is a great way to explore.
python manage.py helpYou Can Add Your Own
Apps can define custom management commands too. Once added, they run through manage.py exactly like the built-in ones.
Quick Check
Which command actually applies migrations to the database?
Recap: Commands at Your Fingertips
You learned that manage.py drives your project: runserver, makemigrations, migrate, createsuperuser, shell, and more. It is your daily toolkit. 🚀
الأسئلة الشائعة
هل درس «manage.py: مركز قيادة مشروعك» مجاني؟
نعم — نص درس «manage.py: مركز قيادة مشروعك» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Django Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Django Academy 4 دروس في المجموع.
ماذا ستتعلم في «manage.py: مركز قيادة مشروعك»؟
الأوامر اليومية التي تشغّلها عبر manage.py تتمرن على Django Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Django Academy؟
لا تُشترط خبرة سابقة. Django Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «manage.py: مركز قيادة مشروعك»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Django Academy هذا؟
نعم. كل درس في Django Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- startapp وتخطيط مجلد التطبيق
- تسجيل التطبيقات في INSTALLED_APPS
- جولة في settings.py
- manage.py: مركز قيادة مشروعك