0Pricing
Django Academy · درس

‏createsuperuser وتسجيل الدخول

أنشئ حساب مسؤولًا وادخل إلى ‎/admin‎

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

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

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

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

هل درس «‏createsuperuser وتسجيل الدخول» مجاني؟

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

ماذا ستتعلم في «‏createsuperuser وتسجيل الدخول»؟

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

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

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

كم من الوقت يستغرق درس «‏createsuperuser وتسجيل الدخول»؟

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

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

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

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

  1. ‏createsuperuser وتسجيل الدخول
  2. تسجيل النماذج باستخدام admin.site
  3. تخصيص ModelAdmin
  4. Inlines والحقول للقراءة فقط
← العودة إلى Django Academy