Member-only story

Django Just Got a Big Update!

Manpreet Singh
2 min readApr 3, 2023

--

Welcome back! Django is an amazing web framework that’s used by tons of websites all over the place, guess what!? Django just got another big update, this is Django version 4.2! Let’s take a look at some of the cool features brought over to this version of Django!

Commenting On Columns & Tables

This new version of Django also brings support for comments within columns and tables! This is actually a super useful feature that I’ve seen a few others requested before, here is an example (from their release log):

from django.db import models


class Question(models.Model):
text = models.TextField(db_comment="Poll question")
pub_date = models.DateTimeField(
db_comment="Date and time when the question was published",
)

class Meta:
db_table_comment = "Poll questions"


class Answer(models.Model):
question = models.ForeignKey(
Question,
on_delete=models.CASCADE,
db_comment="Reference to a question",
)
answer = models.TextField(db_comment="Question answer")

class Meta:
db_table_comment = "Question answers"

Psycopg3 Support

This new update with Django actually brings psycopg3 support! this should make it a better overall experience for those of you who use PostgreSQL with Django!

--

--

Manpreet Singh
Manpreet Singh

No responses yet