Sept. 17, 2024 » Adam Johnson » [Archived Version]
Django’s test client provides two methods to log in a user: login() and force_login(). The latter one is faster because it bypasses the authentication backend, including password hashing, and just sets a session to have the user logged in. Typically, you’d want to use it in setUp() like …
Read MoreSept. 17, 2024 » Instawork Engineering » [Archived Version]
IntroductionIn pursuing excellence within the digital automation landscape, visualizing and comprehending screen workflows can be a transformative capability. Introducing Screenchain, a pioneering Django web application that exemplifies how innovation can enhance understanding and efficiency in automated processes. This blog post delves into what Screenchain is all about, how it works, its benefits, and the challenges our QA team overcame to bring this tool to life.What is Screenchain?Screencha…
Read MoreSept. 16, 2024 » The Django weblog » [Archived Version]
Hello Everyone 👋 It is that time of year again when we recognize someone from our community in memory of our friend Malcolm. Malcolm was an early core contributor to Django and had both a huge influence and impact on Django as we know it today. Besides being knowledgeable he was also especially friendly to new users and contributors. He exemplified what it means to be an amazing Open Source contributor. We still miss him to this day. The prize The Django Software Foundation Prizes page summa…
Read MoreSept. 15, 2024 » Simon Willison's Weblog: django » [Archived Version]
UV — I am (somewhat) sold Oliver Andrich's detailed notes on adopting uv. Oliver has some pretty specific requirements: I need to have various Python versions installed locally to test my work and my personal projects. Ranging from Python 3.8 to 3.13. [...] I also require decent dependency management in my projects that goes beyond manually editing a pyproject.toml file. Likewise, I am way too accustomed to poetry add .... And I run a number of Python-based tools --- djhtml, poetry, ipython, l…
Read MoreSept. 13, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
django-content-editor now supports nested sections django-content-editor (and it’s ancestor FeinCMS) has been the Django admin extension for editing content consisting of reusable blocks since 2009. In the last years we have more and more often started automatically grouping related items, e.g. for rendering a sequence of images as a gallery. But, sometimes it’s nice to give editors more control. This has been possible by using blocks which open a subsection and blocks which close a subsection …
Read MoreSept. 13, 2024 » Django News » [Archived Version]
News Python 3.13.0RC2 and security updates for 3.8 through 3.12 Python 3.13.0RC2 and security updates for Python 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available! blogspot.com DjangoCon US 2024 last call! DjangoCon US starts September 22nd. It's the last call to buy an in-person or online ticket to attend this year! ti.to Python in Visual Studio Code – September 2024 Release The Python extensi…
Read MoreSept. 11, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 37) django-debug-toolbar alpha with async support! I have helped mentoring Aman Pandey who has worked all summer to add async support to django-debug-toolbar. Tim has released an alpha which contains all of the work up to a few days ago. Test it! Let’s find the breakages before the final release. Dropping Python 3.9 from my projects I have read Carlton’s post about the only green Python release and have started dropping Python 3.9 support from many of the packages I maintai…
Read MoreSept. 10, 2024 » Software Crafts » [Archived Version]
Adding my ideas to the mix for Django auth!
Read MoreSept. 8, 2024 » Carlton's latest posts. » [Archived Version]
I’m going to try something new. For this upcoming quarter, so until the end of the year, I’m going to put aside Thursday afternoons (Europe) to be online, doing my maintenance, a kind of office hour, offering a support group to existing maintainers, and offering mentoring to new or prospective maintainers in the Django ecosystem. (More details to follow as I come up with them.) If it goes well, we can carry on beyond the new year. I feel like I’ve been banging this drum for a long time but, t…
Read MoreSept. 7, 2024 » Adam Johnson » [Archived Version]
Django provides us with a rich set of view decorators. In this post, we’ll look at a technique for hoisting repeated use of these decorators to reduce repetition. Repeated @cache_control calls Here are two public views with the same @cache_control decorator: from django.views.decorators.cache import cache_control @cache_control …
Read More