Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django News - Django 5.1 release candidate 1 released - Jul 26th 2024
News Django 5.1 release candidate 1 released Django 5.1 release candidate 1 is the final opportunity for you to try out a kaleidoscope of improvements before Django 5.1 is released. djangoproject.com Stack Overflow 2024 Developer Survey The most recent results show Django remaining one of the top web framework choices. stackoverflow.co 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 7 different contributors - including 1 first-time contributor! Congratulations to Maryam Yusuf for having their first commits merged into Django - welcome on board! 🚀 In Django 5.0 a regression is fixed where ModelAdmin.action_checkbox could break the admin change list HTML page when rendering a model instance with a __html__ method. Do you want to follow Eliana Rosselli's path to becoming a new Django core contributor? Listen to her journey during her talk in DjangoCon Europe. Django Newsletter Sponsored Link Django for Beginners, Fifth Edition The fifth edition covering Django 5.x is now available! It includes loads of new content, including sections on Django architecture, a new Company Website project, full coverage of function-based and class-based views, testing, and a revised deployment guide. … -
Django News - DjangoCon US 2024 Talks - Jul 19th 2024
News Announcing our DjangoCon US 2024 Talks! The complete 2024 DjangoCon US talk and tutorial lineup is now live. DjangoCon US is from September 22nd to the 27th. djangocon.us PSF News: Announcing the 2024 PSF Board Election & Proposed Bylaw Change Results! The PSF membership approved all three bylaw proposals and elected three directors to the Python Software Foundation Board of Directors. blogspot.com Python 3.13.0 beta 4 released Python 3.13.0b4 is the final beta release preview of 3.13. blogspot.com PSF hires two new positions The Python Software Foundation announced hiring two new positions this week with PyPI Support Specialist and Infrastructure Engineer roles. Django Newsletter Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 12 pull requests merged into Django by 10 different contributors - including 4 first-time contributors! Congratulations to Lucas Oliveira, brucejwb, wookkl and Daniel for having their first commits merged into Django - welcome on board! Inside the Forum there's an interesting idea to simplify generating date range reports using Postgress' generate_series(). Join the conversation. Did you miss Djangocon Europe this year? See the talks here Django Newsletter Sponsored Link Django for Beginners, Fifth Edition The fifth … -
Activation Email Job - Building SaaS #196
In this episode, we chatted about managing dependencies and the cost of maintenance. Then we got into some feature work and began building a job that will send users an email as reminder to activate their account shortly before it expires. -
Database Design Tutorial for Beginners
Databases are at the heart of every web application. Their design, or schema, is literally the blueprint for how all information is stored, updated, and accessed. However, learning about databases … -
Is Django a Full Stack Framework?
The title of this post, "Is Django a Full Stack Framework?" is a question I receive often from new web developers. It's a very valid question so I wanted to … -
Trailing URL Slashes in Django
Among Django's many built-in features is [APPEND_SLASH](https://docs.djangoproject.com/en/dev/ref/settings/#append-slash), which by default is set to `True` and automatically appends a slash `/` to URLs that would otherwise [404](https://en.wikipedia.org/wiki/HTTP_404). **Note**: The Chrome web … -
What is Django (Python)?
[Django](https://djangoproject.com) is an open-source web framework written in the [Python](https://www.python.org) programming language. Named after the jazz guitarist [Django Reinhardt](https://en.wikipedia.org/wiki/Django_Reinhardt), it is used by some of the largest websites in the … -
How to Get Hired as a Django Developer
Hiring developers is a famously non-linear problem. Once you have a job at a notable company, it seems recruiters constantly beat down your door. But how do you get started? … -
NameError: name 'os' is not defined
If you've started a new Django 3.1+ project and are using older tutorials or guides, it's likely to come across the following error on your command line: ``` NameError: name … -
Django ORM and QuerySets Tutorial
The Django [Object-Relational Mapper (ORM)](https://docs.djangoproject.com/en/dev/topics/db/) is one of the most powerful aspects of the web framework, an abstraction layer that allows developers to write object-oriented Python code which is translated … -
How to Learn Django (2024)
__Note__: I gave a version of this tutorial at DjangoCon US 2022. You can see the video here: <iframe width="738" height="417" src="https://www.youtube.com/embed/rIt0uj8TaKg" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" … -
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 … -
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 […] -
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. -
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