Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django News - Django security releases issued: 5.0.7 and 4.2.14 - Jul 12th 2024
News Django security releases issued: 5.0.7 and 4.2.14 Four new security issues are fixed in the latest release. As ever, being up-to-date on the latest version of Django is one of the best security measures you can take. djangoproject.com Announcing our DjangoCon US 2024 Talks! The tutorial and talk lineup for DjangoCon US is now out. There is one day for tutorials, three days of talks, and two days of sprints. djangocon.us Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 11 pull requests merged into Django by 11 different contributors - including 3 first-time contributors! Congratulations to Michael, Andrew Miller and Bam_boogie for having their first commits merged into Django - welcome on board! 🚀 Great work with fixing bugs: Fixed a bug in Django 5.0 that caused a crash of Model.full_clean() on unsaved model instances with a GeneratedField. Fixed a bug in Django 5.2 where combining queries and annotations with model fields led to undesirable SQL queries. Django has released versions 5.0.7 and 4.2.14, addressing several security vulnerabilities. Please upgrade as soon as possible. Detailed information can be found in the official announcement. Django Newsletter Wagtail CMS Wagtail … -
Trial Banner Inclusion Tag - Building SaaS #195
In this episode, we worked on a trial banner that could persist across all pages on the site. Because the banner needed data that was only available on the index page, we had to refactor the banner into an inclusion template tag to make the tag work consistently. -
All I Need to Know About Engineering Leadership I Learned From Leave No Trace
Sumana challenged me to apply the principles of Leave No Trace to engineering leadership, so here we go. -
Trial Banner Inclusion Tag - Building SaaS #195
In this episode, we worked on a trial banner that could persist across all pages on the site. Because the banner needed data that was only available on the index page, we had to refactor the banner into an inclusion template tag to make the tag work consistently. -
Developing GraphQL APIs in Django with Strawberry
This tutorial details how to integrate GraphQL with Django using Strawberry. -
Django News - Psycopg 3.2 released - Jul 5th 2024
News The 2024 PSF Board Election is Open! If you are a voting member of the PSF, it's time to vote for your next representatives and on three bylaw amendments. blogspot.com Psycopg 3.2 released After almost two years, 846 commits, more than 700 new tests, and more than 20000 changes in 310 files Psycopg 3.2 has been released! psycopg.org Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 19 pull requests merged into Django by 12 different contributors - including 3 first-time contributors! Congratulations to Raffaella, AjmalPonneth, and arjun omray for having their first commits merged into Django - welcome on board! News in Django 5.2: The argument find is now deprecated in favor of find_all in django.contrib.staticfiles.finders.find(). Have you ever encountered the ORA-00600 error? In the Django Discord, there was a discussion to understand and focus on this problem, resulting in an open issue on Oracle. In the Django Forum, there is an exciting update on the next step in DEP0009 Django Newsletter Wagtail CMS Wagtail Space US 2024: Beating the heat with cool code A recap (with photos!) of the recent three days of talks and sprints at … -
Reusable Components in Django with Stimulus and Tailwind CSS - Part 2
This tutorial looks at how to add server-side components to our client-side setup with Django. -
Reusable Components in Django with Stimulus and Tailwind CSS - Part 1
This tutorial looks at how to build client-side UI components in Django with Stimulus and Tailwind. -
Django News - Django 5.1 beta 1 and Python 3.13.0 beta 3 released - Jun 28th 2024
News Django 5.1 beta 1 released Django 5.1 beta 1 is the second stage in the 5.1 release cycle and is an opportunity for you to try out the changes coming in Django 5.1. djangoproject.com Python 3.13.0 beta 3 released Python 3.13.0b3 is the third of four beta release previews of 3.13. Beta release previews are intended to allow the wider community to test new features and bug fixes and prepare their projects to support the latest feature release. blogspot.com PSF News: Announcing the PSF Board Candidates for 2024! Voting for the PSF board starts on Tuesday, July 2nd. blogspot.com PSF News: The Python Language Summit 2024: Python's security model after the xz-utils backdoor Current discussions around the xz-utils backdoor and ways to avoid future situations in the Python space. blogspot.com Updates to Django Today 'Updates to Django' is presented by Farhan Ali Raza from Djangonaut Space! Last week we had 13 pull requests merged into Django by 11 different contributors - including 5 first-time contributors! Congratulations to John Higgins, Ronny V., Stefan Ivic, Rosana Rufer from Djangonaut Space 🎉, and lotvall for having their first commits merged into Django - welcome on board! Django forum discussions to check out: … -
Mercurial Mirror For Django 5.1 Branch
Upstream just released the first beta. Now is the time to start the new mirror. For the record, those mirrors are read-only, and aimed at production (aka “I want an easy way to update Django on servers “), not development (aka “i wanna commit”). While I was there, I also removed the mirrors for long-obsolete […] -
London Tech Zero Hackathon on July 1 and 2!
On the 1st and 2nd of July is the first-ever London Tech Zero Hackathon, supported by Kraken Tech. Taking place in the Vinyl Factory in Soho, for two days developers, designers, and others will hack out MVPs of solutions to resolve real-life sustainability and climate problems. APIs and guidance will be provided, and contestants can build out software or hardware solutions. Individuals are welcome to attend and companies are invited to send teams. There will be prizes besides bragging rights - including a £20k mini grant to develop the winning idea. I'll be there to help! As an employee of the hosts, I can't build your projects for you but I can provide assistance. :-) The event will provide: APIs Venue Food and drink Fast internet and power Changes to network and socialize Speech by Greg Jackson, CEO of Octopus Energy Lots of prizes, first place is a £20K grant to help build out your project Contests provide: Skills Enthusiasm Laptop and other hardware Schedule: July 1: Event begins at 10am, venue closes at 10pm July 2: Judging at 3pm -
Django: Test for pending migrations
This post is an adapted extract from my book Boost Your Django DX, available now. Django requires every change to model fields and meta classes to be reflected in database migrations. This applies even to things that don’t typically affect the database, such as Field.choices. When iterating on code, it’s easy to make a model change and forget to update the migrations accordingly. If you don’t have any protection, you might even deploy code that crashes due to out-of-date migrations! To protect against this, you can run the makemigrations command with a couple of flags: $ ./manage.py makemigrations --dry-run --check The --dry-run flag makes the command generate migrations but not write them to disk. The --check flag causes the command to fail (have a non-zero exit code) if any changes are detected. Combining them gives you a command that will succeed if no migrations are required or fail with a report of the missing migrations. Let’s look at an example project that is missing a migration. The project has an Author model with a name field. The migrations create the name field with a max_length of 100 characters. But the model has since been updated to use a max_length of … -
Django News - htmx 2.0 - Jun 21st 2024
News </> htmx 2.0.0 has been released! htmx 2.0 is the best thing since htmx 1.0 and is newly released. htmx.org PyPI: Prohibiting Outlook email domains In response to ongoing mass bot account registrations, Outlook domains outlook.com and hotmail.com have been prohibited from new associations with PyPI accounts. pypi.org DjangoCon US: Call for Venue Proposal 2025 DEFNA is seeking proposals for a venue for DjangoCon US 2025 and ideally 2026. djangoproject.com Updates to Django Today 'Updates to Django' is presented by Vaarun Sinha from Djangonaut Space! Last week we had 8 pull requests merged into Django by 6 different contributors - including 2 first-time contributors! Congratulations to George Kussumoto and Madalin Popa for having their first commits merged into Django - welcome on board! Some interesting Django forum discussions to check out: DEP009: Is Async-Capable Django Still Relevant? : A discussion on the future direction of async support in Django, addressing current achievements, challenges, and potential next steps. Idea: makemigrations and squashmigrations with --no-deps flag : Proposing a solution for handling circular dependencies in large projects by creating models without relationships initially, and then adding them in subsequent migrations. Django Newsletter Wagtail CMS How to Remove the “Add” Button from … -
Django 5 by Example preface
The story of my experience in writing the preface of the book “Django By Example” by Antonio Melé. -
Password Resets and Signal Handling - Building SaaS #194
In this episode, we hooked up the email confirmation signal to the prompt sending code so that new users can use JourneyInbox immediately. Then we focused on handling all the functionality related to the password reset feature. This meant customizing a bunch of django-allauth forms. -
Password Resets and Signal Handling - Building SaaS #194
In this episode, we hooked up the email confirmation signal to the prompt sending code so that new users can use JourneyInbox immediately. Then we focused on handling all the functionality related to the password reset feature. This meant customizing a bunch of django-allauth forms. -
How to Remove the “Add” Button from Wagtail Admin SnippetViewSet
From time to time, I encounter scenarios where I want to restrict certain actions, such as adding new instances for a particular model in Wagtail CMS Admin. For example, if I have a ContactFormSubmission model, I don’t want admins to be able to create form submissions manually; that’s what the … Read now -
Django News - DjangoBook.com - Jun 14th 2024
News Django Book A website of all available books on Django. djangobook.com Python Insider: Python 3.12.4 released 3.12.4 is the latest maintenance release, containing more than 250 bugfixes, build improvements and documentation changes since 3.12.3. blogspot.com PSF News: It’s time to make nominations for the PSF Board Election! This year’s Board Election Nomination period is now open and closes on June 25th blogspot.com PSF News: For your consideration: Proposed bylaws changes to improve our membership experience The PSF has proposed three bylaw changes to improve our membership experience. blogspot.com Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 4 pull requests merged into Django by 2 different contributors - including 1 first-time contributor! Congratulations to Ismael for having their first commits merged into Django during DjangoCon Europe 🏰 - welcome on board! DjangoCon Europe has just ended and during the sprints, 17 new PRs were opened. Thank you all for your commitment! This year, we're celebrating the 10th anniversary of Django Girls+. You can watch the celebration video here. It's wonderful to celebrate and look back at the steps we've taken so far. Yay! Django Enhancement Proposal 14 (DEP-14) has … -
Optimizing Test Execution: Running live_server Tests Last with Pytest
When working with Django applications, it's common to have a mix of fast unit tests and slower end-to-end (E2E) tests that use Pytest's live_server fixture and browser automation tools like Playwright or Selenium. To ensure my test suite runs efficiently, I want to execute the slower tests at … Read now -
Boosting AI with Python: Using Click, Jinja2, and GPT Libraries
n this session, we will explore how to use Python to enhance your AI projects with: -
Boosting AI with Python: Using Click, Jinja2, and GPT Libraries
n this session, we will explore how to use Python to enhance your AI projects with: -
Paying More for Media
A new principle I’m trying to follow: we should be paying more for independent media. How I got there, and a list of the media I’m paying for. -
Weeknotes (2024 week 23)
Weeknotes (2024 week 23)Switching everything from pip to uv Enough said. I’m always astonished how fast computers can be. Releases django-admin-ordering 0.18: Added a database index to the ordering field since we’re always sorting by it. django-prose-editor 0.4: Dropped the jQuery dependency making it possible to use the editor outside the Django administration interface without annoying JavaScript errors. Allowed additional heading levels and moved the block type buttons into a popover. django-debug-toolbar 4.4.2: I enjoy working on this important piece of software very much. django-email-hosts 0.2.1: Added a command analogous to ./manage.py sendtestemail so that it’s possible to easily test the different configured email backends. feincms3 5.0: I completely reworked the move node action; previously it opened a new page where you could see all possible targets; now you can cut a page and paste it somewhere else. The advantages of the new interface is that you don’t leave the changelist and can still profit from all its features while moving pages around. feincms3-sites 0.21: A new release taking advantage of a new hook in feincms3 7.0 so that the new moving interface works. django-authlib 0.16.5: authlib now shows a welcome message when authenticating using admin OAuth2. It’s nice and … -
Django News - Annual PyCharm 30% Discount to Support Django - Jun 7th 2024
News PyCharm & Django Campaign 2024 Save 30% on PyCharm and support the Django Software Foundation, with 100% of proceeds benefiting the DSF's essential programs and events. djangoproject.com The State of Django 2024 A recap of the recent Django Developers Survey results. jetbrains.com PSF News: Affirm your PSF Membership Voting Status Confirm your PSF membership by June 25th to vote in this year's Python Software Foundation Board Election. blogspot.com Python 3.13.0 beta 2 released Python 3.13.0 beta 2 is out, offering a preview of new features and bug fixes for community testing before its final release. github.com Wagtail CMS To Wagtail Space and Beyond: A month of live Wagtail events A whole month of Wagtail-inspired talks, events, sprints, and more wagtail.org Sponsored Link Get 30% off PyCharm. 100% Support Django Support the rapid development of Django! Until June 15, get PyCharm for your Django development with a 30% discount via this link. 100% will be donated to the Django Software Foundation. jb.gg Articles PyCon US 2024 Recap A very in-depth review from Kati Michel on PyCon US this year. Definitely give it a read if you couldn't attend in person. github.io Engineering for Slow Internet How to minimize user frustration … -
Polish, Debug Toolbar, Email Signals - Building SaaS #193
In this episode, we first added the Django debug toolbar to aid future troubleshooting. Then, following some PR cleanup, I added django-denied as the authorization framework for the site. With those two packages integrated, I did some polishing work and began the effort to send prompts immediately following email verification.