كل شيء مضمَّن: ORM وAdmin وAuth
المكوّنات المضمَّنة التي تحصل عليها جاهزة مجانًا
كل شيء مضمَّن: ORM وAdmin وAuth درس مجاني في Django Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Django Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Django Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Free Superpowers
Django ships with big features you would otherwise build by hand. The three crown jewels are the ORM, the admin site, and authentication. 🔋
Meet the ORM
The ORM lets you talk to the database in Python instead of SQL. You write objects and methods, and Django translates them into queries for you.
Queries Without SQL
Fetching rows feels like normal Python. This ORM call grabs every post, no SQL string in sight, and it stays safe from injection.
posts = Post.objects.all()
recent = Post.objects.filter(published=True)Why an ORM Matters
The ORM works across databases like SQLite and Postgres, so switching engines rarely means rewriting your code. You think in objects, not tables.
The Admin Site
Register a model and Django generates a full admin dashboard to create, edit, and delete records, with no extra HTML written by you. ✨
from .models import Post
admin.site.register(Post)Admin Saves Days
That auto-built admin is perfect for staff and content editors. You skip building internal tools and let Django manage your data out of the box.
Built-in Authentication
Django's auth system handles users, passwords, and permissions for you. Secure password hashing comes standard, so you never store raw passwords. 🔐
Login Without the Pain
Verifying a user is one call. The authenticate function checks credentials safely, returning the user or None, so you avoid risky hand-rolled logic.
user = authenticate(username="sam", password="secret")
if user is not None:
login(request, user)Permissions for Free
The auth system also gives you permissions and groups. You can gate pages to logged-in users or admins with a tiny decorator, not a custom system.
Even More in the Box
Beyond these three, Django bundles forms, sessions, email, and caching. The pattern is the same: common needs solved once, the right way, for everyone.
Less Glue, More Building
Because these pieces share one design, they fit together cleanly. You spend energy on your product, not on wiring unrelated libraries. 🙌
Quick Check
What does the ORM let you skip?
Recap
You explored Django's batteries: the ORM for queries in Python, an auto-generated admin, and a secure auth system, plus forms and more. Build features, not plumbing. ✨
الأسئلة الشائعة
هل درس «كل شيء مضمَّن: ORM وAdmin وAuth» مجاني؟
نعم — نص درس «كل شيء مضمَّن: ORM وAdmin وAuth» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Django Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Django Academy 4 دروس في المجموع.
ماذا ستتعلم في «كل شيء مضمَّن: ORM وAdmin وAuth»؟
المكوّنات المضمَّنة التي تحصل عليها جاهزة مجانًا تتمرن على Django Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Django Academy؟
لا تُشترط خبرة سابقة. Django Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.
كم من الوقت يستغرق درس «كل شيء مضمَّن: ORM وAdmin وAuth»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Django Academy هذا؟
نعم. كل درس في Django Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- ما هو Django وما المشكلات التي يحلّها
- MTV: Models وTemplates وViews
- كل شيء مضمَّن: ORM وAdmin وAuth
- هل Django مناسب لمشروعك؟