What's new in Django community blogs?

How I handle versioning

Aug. 20, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]

How I handle versioning I have been reading up on versioning methods a bit, and I noticed that I never shared my a bit unorthodox versioning method. I previously wrote about my rules for releasing open source software but skipped everything related to versioning. I use something close to the ideas of semantic versioning but it’s not quite that. Note that the versioning scheme has nothing to do with production readiness, it’s more about communicating the state of the project. 0.0.x – Everything …

Read More

How To Use PyJWT With Django In A Resource Server And Still Keep Parts Of Your Sanity

Aug. 20, 2024 » Tinker, Tamper, Alter, Fry » [Archived Version]

The OAuth2 spec cleanly separates the role of Authorization Server (AS) from that of Resource Server (RS). The role of the AS, and the whole OAUTH2 dance, is to get an access token that will be accepted by a RS.It’s puzzling. It should be easy, nay, trivial, to implement the Resource Server side in Django, […]

Read More

Limiting Content Types in a Django Model

Aug. 19, 2024 » TestDriven.io » [Archived Version]

This article looks at how to limit the content types in a Django model.

Read More

Creating rows for django-tables2 with HTMX

Aug. 17, 2024 » Better Simple » [Archived Version]

An explanation of how to use django-tables2, HTMX, Alpine and Bootstrap to render a table with a form to create new rows.

Read More

Django News - Django 5.2 News - Aug 16th 2024

Aug. 16, 2024 » Django News » [Archived Version]

News PSF Community Service Awards to Kojo Idrissa! 🎉 Congratulations to Kojo Idrissa on his well-deserved Community Service Award. This award was given to Kojo for delivering insightful talks, organizing events like DjangoCon US, and engaging in discussions with developers and new Python developers. Kojo consistently champions the growth and inclusivity of the Python ecosystem. python.org Announcing PSF Fellow Members for Q1 2024! 🎉 Congra…

Read More

Weeknotes (2024 week 33)

Aug. 14, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]

Weeknotes (2024 week 33) Partying It’s summer, it’s hot, and it’s dance week. Lethargy is over, Jungle Street Groove is coming up. Good times. Releases django-json-schema-editor 0.1: I have finally left the alpha versioning. I’m still not committing to backwards compatibility, but I have started writing a CHANGELOG. django-prose-editor 0.7.1: Thanks to Carlton’s pull request I have finally cleaned up the CSS somewhat and made overriding the styles more agreeable when using the editor outside t…

Read More

Recommendations for working with Django Groups and Permissions

Aug. 14, 2024 » Software Crafts » [Archived Version]

Some default patterns I consider when dealing with permissions

Read More

Django: create sub-commands within a management command

Aug. 13, 2024 » Adam Johnson » [Archived Version]

argparse, the standard library module that Django uses for parsing command line options, supports sub-commands. These are pretty neat for providing an expansive API without hundreds of individual commands. Here’s an example of using sub-commands in a Django management command: from django.core.management.base import BaseCommand class Command …

Read More

New Django {% querystring %} template tag

Aug. 13, 2024 » Simon Willison's Weblog: django » [Archived Version]

New Django {% querystring %} template tag Django 5.1 came out last week and includes a neat new template tag which solves a problem I've faced a bunch of times in the past. {% querystring color="red" size="S" %} Adds ?color=red&size=S to the current URL - keeping any other existing parameters and replacing the current value for color or size if it's already set. {% querystring color=None %} Removes the ?color= parameter if it is currently set. If the value passed is a list it will append ?col…

Read More