Django Tutorial #3: Configure Project-Level & App-Level URLs | include() Explained
Автор: BasicToTop
Загружено: 2025-12-04
Просмотров: 26
Welcome back to Session 3 of the Django Tutorial Series by BasicToTop!
In this video, we go deeper into Django URL routing and learn how to configure *project-level URLs* and *app-level URLs* using the include() function. This is one of the most important concepts for structuring real Django applications.
🚀 Topics Covered in This Session:
--------------------------------------------
✔️ Understanding Project-Level URLs
✔️ Understanding App-Level URLs
✔️ Using include() for modular URL management
✔️ Adding multiple apps (mainapp, sub_app)
✔️ URL routing for different views
✔️ Passing dynamic parameters through URLs
✔️ clean folder structure for Django projects
📁 Files Explained:
--------------------------------------------
🟦 firstproject/urls.py
🟦 mainapp/urls.py
🟦 sub_app/urls.py
🟦 mainapp/views.py
🟦 sub_app/views.py
🧩 Views Covered:
--------------------------------------------
• home_view
• about_view
• sum(a, b)
• multiply(a, b)
📌 Final URL Structure Demo:
--------------------------------------------
mainapp/home/
mainapp/about/
mainapp/sum/10/20/
sub_app/multiply/5/6/
🌟 About BasicToTop
BasicToTop is here to help you move forward — from basic to top.
We teach Python, Django, backend development, and real-world projects with a clear and practical approach.
🔔 Subscribe for more tutorials
👍 Like the video to support the series
💬 Drop any questions — I reply to everyone
Resources & Links:
‣ BasicToTop Website: https://basictotop.in
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: