Skip to content
dreamcode
dreamcode
Back to map
Django overview · Lesson 37 of 44
+15 XP on finish
PYTHON APPLIED

Django: the batteries-included framework

Django is a full-featured Python web framework that follows the Model-View-Template pattern. It comes with a built-in ORM for database queries, an admin panel, authentication, and URL routing out of the box.

How it reads
models.Model turns a Python class into a database table via the ORM
Star.objects.values(...) queries the database and returns matching rows
JsonResponse sends data back to the client as JSON
Cloud tip: Django's ORM lets you query the database using Python instead of writing raw SQL. Migrations keep your database schema in sync with your models.
Check your understanding
Answer all 3 to complete this lesson · +15 XP
1. What design pattern does Django follow?
2. What does Django's ORM allow you to do?
3. Which command starts the Django development server?