Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Creating Django Views & Models

via Codecademy

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates

HTML templates and database access play integral roles in modern web development, providing tools to enhance website structure, presentation, and responsiveness. HTML templates serve as the backbone for web pages, defining the document structure and content while database integration serves to make your app serve dynamic, personalized content. Begin this course by adding life to your Django apps with dynamic content. Real apps invariably rely on user input, so you will learn to weave data from Python functions into your HTML templates using template parameters. Then you will use dynamic named URLs to add links between your app's pages. You will use generative AI tools and template inheritance to reduce boilerplate HTML code. Next, you will style and theme your application using Bootstrap templates. Finally, you will dive into data models with Django, using Django's built-in SQLite database and object-relational mapper. You will create a class representing a table and evolve your database schema using migrations.

Syllabus

  • discover the key concepts covered in this course
  • add dynamic content to web apps
  • add named URLs to an app
  • use parameterized URLs
  • perform template inheritance
  • use Bootstrap templates
  • refactor HTML templates
  • set up data models and apply migrations
  • create and apply migrations
  • manage the schema of data models
  • create foreign key references
  • summarize the key concepts covered in this course

Reviews

Start your review of Creating Django Views & Models

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.