News
New Python 3.7 to 3.11 releases and 3.12.0 beta 2 are now available
Another combined release of six separate versions of Python including 3.12.0 beta 2!
PEP 703: Making the Global Interpreter Lock Optional (3.12 updates)
A very informed discussion on PEP 703 to make the Python GIL optional.
Migrate your project to .readthedocs.yaml configuration file v2
An important deprecation announcement from ReadTheDocs: a .readthedocs.yml
file will soon be required configuration on all projects.
Django Software Foundation
Django Software Foundation June meeting minutes
Meeting minutes for DSF Board monthly meeting, June 8, 2023.
Updates to Django
Updates to Django
Courtesy of Django Review and Triage Team Member Sarah Boyce...
Last week we had 16 pull requests merged into Django by 11 different contributors - including 3 first time contributors! Congratulations to XDEv11, EBIBO, and Howard Cox for having their first commits merged into Django - welcome on board!
This time there were even more accessibility improvements to the Django admin! For example, active row highlighting was added when in forced color mode. Did you know about forced color mode? I didn't! Love learning about how to make the web more accessible.
Sponsored Link 1
Ready to get your Django project to the next level?
At HackSoft, we offer expert Django software development, consultancy and support, to help you build robust and scalable software.
Articles
Writing a chat application in Django 4.2 using async StreamingHttpResponse, Server-Sent Events and PostgreSQL LISTEN/NOTIFY
A very, very interesting example of writing a chat application with new Django features. We highly recommend you check this one out!
Pro-Tip – pytest fixtures are magic!
Pro tips from RevSys CEO Frank Wiles on using pytest
fixtures to speed up your Django tests.
Django: A security improvement coming to format_html()
Adam Johnson walks us through how to use format_html
and avoid a common XSS (cross-site-scripting) vulnerability.
Python Software Foundation: Working Groups
Dawn Wages explains how the PSF relies heavily on Working Groups, something the Django Software Foundation is starting to do more with, too.
Forum
Adding template fragments or partials for the DTL - Django Internals
A lengthy Django forum discussion on possibly adding inline partials or template fragment features to the Django Templating Language
Rejuvenating vs deprecating Form.Media - Django Internals
Another good and deep discussion about Form.Media
in Django and the larger question of managing assets in Django.
Tutorials
Django ORM and QuerySets Tutorial
Build a recipes
app while learning how the Django ORM and QuerySets work. This is a hands-on tutorial that introduces concepts such as chaining, filters, model managers, the Python shell, and more.
Videos
DjangoCon Europe 2023: Yak-shaving to Where the Puck is Going to Be
Recently retired Django Fellow Carlton Gibson shares his thoughts on the future of Django and the concept of "locality of behavior." He starts by discussing Class-Based Views and introduces a new project, Neapolitan, an opinionated take on quick CRUD views.
Then he turns to HTMX and another new projects, django-template-partials, which are reusable named inline partials for the Django Template Language.
DjangoCon Europe 2023: Good form: How Django’s form rendering improved during the 4.x series
Under the hood, Django has made several major changes to forms in the 4.x series, including a new default style to replace as_table
in Django 5.0. David Smith walks us through how forms work, why the changes were made, and what to expect in 5.0+.
Sponsored Link 2
Blaze.horse — Django Starter Kit
Big tech thinks everyone needs to build aircraft carriers, but all you need is a horse. We’ve distilled what we’ve learned, making all the little picky decisions so you don’t have to: just get to work on your project!
Projects
carltongibson/django-template-partials
Reusable named inline partials for the Django Template Language.