Aicloud E-Learning

Guided Notes

Introduction to Django

The model-view-template pattern.

Django is a Python web framework that follows a Model-View-Template pattern: models define your data shape, views contain logic, and templates render HTML.

Django's ORM (Object-Relational Mapper) lets you work with database rows as Python objects — `Book.objects.filter(author="Ada")` runs a SQL query behind the scenes, without you writing SQL directly.

Django is described as 'batteries included' because it ships with an admin panel, authentication, and form handling out of the box — far more built in than a minimal framework like Flask.