Загрузка...

Django Templates, Views & Context Rendering (بايثون ديجانجو) #3

In this third lesson of our Django Zero to Advanced course, we explore the world of Templates. We move away from simple text and learn how to render beautiful HTML pages while passing dynamic data from our Views to the Front-end.
What we cover in this video:
✅ Setting up the Templates folder and configuring settings.py.
✅ Using the render() function instead of HttpResponse.
✅ Understanding "Context" and how to pass Python data to HTML.
✅ Best practices for organizing your Django project files.

GitHub (Source Code): https://github.com/rubada/Django-Tutorials
📺 Full Django Playlist: https://www.youtube.com/playlist?list=PLD06In0ejHWYPaw672_qPWLJwT6QokD7q

00:00 Channel Intro
00:14 Introduction: Building a Multi-Page Project
01:05 Key Steps to Setting Up a New App
01:47 Configuring Templates: Creating the Folder & HTML Files
03:16 Linking Templates in settings.py (Understanding BASE_DIR)
04:50 Comparing Project Creation Methods (With vs. Without ".")
05:25 Introduction to the render() Function & Shortcuts
06:12 How Django Handles HTTP Requests and Responses
08:00 Building the home_page_view using render()
09:20 Handling Subfolders within the Templates Directory
10:40 Introduction to Context: Passing Data from Python to HTML
12:12 Setting Up urls.py in the Application Folder
13:20 Creating Routes: Home Page vs. About Page (about/)
14:40 Root URL Configuration in the Project Folder
15:50 Testing the Server: Viewing the Home & About Pages
17:35 Rendering Dynamic Data: Using {{ curly_brackets }} in HTML
18:57 Preview of Video #4: Name Parameters & Multiple Contexts

#Django #Templates #Views #Context #Intuidemy #python #webdevelopment

Видео Django Templates, Views & Context Rendering (بايثون ديجانجو) #3 канала Intuidemy
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять