In this section, you:
- Created a Django model:
class Project(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
technology = models.CharField(max_length=20)
image = models.CharField(max_length=100)
- Learned about ORMs
- Learned about relational databases
- Peeked into a Django migrations file
- Peeked into a SQLite database file
- Revisited nested folder structure
- Added static image files to your project
- Linked those image files correctly
- Used the Django shell to create and edit data in your database
- Created new URL paths
- Queried the database from your views
- Passed data on to your template files:
return render(request, "template.html", {"projects": projects})
- Used Django Templating Syntax for code logic and variables
- Applied Bootstrap styling
- Did some serious debugging