django-planet

What's new in Django community blogs?

Boost Your DX bundle deal update

Dec. 29, 2023 » Adam Johnson » [Archived Version]

My two “Boost Your DX” books are available in a bundle deal, saving $10 compared to buying them separately. Great for improving your Django and Git skills at the same time. Buy the bundle on Gumroad This offer does not apply to team licenses. I initially created a bundle deal …

Read More

Django News - No news means more articles! - Dec 29th 2023

Dec. 29, 2023 » Django News » [Archived Version]

Updates to Django Last week we had 12 pull requests merged into Django by 7 different contributors - including 3 first time contributors! Congratulations to Amin Shah Gilani, Nicolas Lupien, and Rapha S for having their first commits merged into Django - welcome on board! Here are the key updates from last week: Django's support of geospatial libraries has been updated. Support for PostGIS 2.5, PROJ < 6 and GDAL 2.4 is removed from 5.1. Confirmed support for GDAL 3…

Read More

Django: Detect the global privacy control signal

Dec. 27, 2023 » Adam Johnson » [Archived Version]

Global Privacy Control (GPC) is a specification for web browsers to signal website operators not to share or sell the user’s data. This signal is intended to exercise legal data privacy rights such as those provided by the California Consumer Privacy Act (CCPA) or the EU’s General Data …

Read More

Know your Python container types

Dec. 25, 2023 » James Bennett » [Archived Version]

This is the last of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Python contains multitudes There are a lot of container types available in the Python standard library, and it can be confusing sometimes to keep track of them all. So since it’s … Read full entry

Read More

Compare strings the right way

Dec. 24, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Unicode’s unique complexity It is the year 2023 — almost 2024! — and hopefully you’re using a programming language that is fully Unicode-aware. Python is; its string type is a sequence of … Read full entry

Read More

Set cookies the right way

Dec. 22, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Cookies in the cookie jar Django’s request and response objects, and their attributes and methods, make dealing with cookies easy. You can read from the request.COOKIES dictionary to get a cookie, and … Read full entry

Read More

Django vs FastAPI: Which is the Best Python Web Framework?

Dec. 22, 2023 » The PyCharm Blog » [Archived Version]

Introduction If you’re new to web development and have only recently heard of “Frameworks” as a method of speeding up your application development, then you’re in the right place. Today, we’ll explore the two most popular web frameworks in the Python ecosystem currently, namely Django and FastAPI. In this blog post, we’ll help you understand […]

Read More

Django News - Understand Django - Dec 22nd 2023

Dec. 22, 2023 » Django News » [Archived Version]

News Python Developers Survey 2023 If you haven't already done so, we encourage you to complete the Python Developers Survey 2023 to share your thoughts. alchemer.com Tailwind CSS v3.4: Dynamic viewport units, :has() support, balanced headlines, subgrid, and more Tailwind CSS v3.4 was just released. This announcement highlights new features like dynamic viewport height units, parent-child styling with the :has() pseudo-class and * variant,…

Read More

Don't use Python's property

Dec. 22, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Attributing the problem Suppose you’re writing Java and you write a class with an attribute : public class MyClass { public int value; } And then later on you realize that value … Read full entry

Read More

Use Django's system checks

Dec. 21, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Check it out While you can do very minimal Django setups, more typical use cases tend to involve a mix of applications — your own, some third-party, and some from django.contrib — … Read full entry

Read More