Django for Python Developers, Part 2 of 8: Templates and Models
Interactive

Django for Python Developers, Part 2 of 8: Templates and Models

LearnNow Online
Updated Jul 20, 2020

Course description

Django is the most widely used Web Application Development framework in the industry today. Django makes it super easy to create production ready web applications. This course will introduce templates, tags and models with views.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

Knowledge of Python


Meet the expert

Bharath Thipireddy

Bharath Thippireddy is an entrepreneur, software architect, public speaker, and trainer. Bharath is a Sun Certified Developer, Web Component Developer, Business Component Developer, and a Web Services Developer. While working for companies like Oracle, HP, TCS, Siemens, and NCR; Bharath has architected applications using Java, JEE, JavaScript, and SOA technologies. He loves learning new things both in technology and personal development and shares them on YouTube and his web site - Sharing is learning!. He has mentored students in classroom trainings, as well as in the corporate world, both in India as well as in USA. He has spoken on technical topics at several agile conferences. While in India he also voluntarily teaches interview and soft skills at Vivekananda Kendra.

Video Runtime

89 Minutes

Time to complete

154 Minutes

Course Outline

Templates and Models

Intro to Templates (22:00)

  • Introduction (00:08)
  • Introduction (00:46)
  • Steps (01:31)
  • Create Template Settings (03:24)
  • Create a Template and View (03:10)
  • Configure the URL and TEST (02:31)
  • Template Tags (03:21)
  • Using template tags (02:38)
  • Rendering Employee Information (04:20)
  • Summary (00:08)

Using Template Tags (14:53)

  • Introduction (00:08)
  • Using Static Files (02:24)
  • Insert an Image (04:11)
  • Use a CSS (03:33)
  • Create ProductTemplates Project (04:28)
  • Summary (00:08)

Create the Template (12:18)

  • Introduction (00:08)
  • Create the templates (05:54)
  • Create the Views (02:57)
  • Map the URLs and Test (03:09)
  • Summary (00:08)

Models (19:24)

  • Introduction (00:08)
  • Introduction (02:29)
  • Steps (00:54)
  • Create a Project (03:44)
  • Using MySql Database (03:26)
  • Create the Model (02:48)
  • Converting Model to DB Tables (05:44)
  • Summary (00:08)

Use Model in view (21:12)

  • Introduction (00:08)
  • Use the model in view (02:36)
  • Create the template (04:21)
  • Run and Test (03:02)
  • Django Admin UI (03:23)
  • Adding Model to the Admin UI (02:23)
  • Displaying Model fields on the UI (02:14)
  • Using SqlLite DB (02:54)
  • Summary (00:08)