Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django News - Python 3.11.0b5 and a new Wagtail CMS book - Jul 29th 2022
News Wagtail CMS in Action Kalob Taulien is the author of Learn Wagtail and many other great courses. His new book, Wagtail CMS in Action, is in progress and available for 40% off now. You can read the first two chapters for free. manning.com Python Insider: Python 3.11.0b5 is now available Python 3.11.0b5 is the last* beta for Python 3.11. blogspot.com Help us test system trust stores in Python If you're an IT or software team that uses Python along with corporate system certificates, an internal CA, or an internal PyPI repository: please read on to help improve Python. sethmlarson.dev Sponsored Ad Crunchy Bridge - Fully Managed Postgres as a Service crunchybridge.com Events Announcing the DjangoCon US 2022 Schedule! The DjangoCon US 2022 talk, tutorial, and sprint schedule is now out. Both in-person and online tickets are available. djangocon.us Articles Django Hosting & Deployment Options An up-to-date listing of Django specific deployment options. learndjango.com Lightweight Javascript Framework Review (For Django Developers) If you were curious about lightweight javascript frameworks, then this is the comprehensive post for you which includes: Phoenix LiveView Laravel Livewire Hotwire (Turbo, Stimulus) StimulusReflex Catalyst HTMX Unpoly Alpine.js Django Reactor Django Unicorn django-sockpuppet Tetra accordbox.com Python Package … -
Recursive Optional Dependencies in Python
One of my (slowly evaporating) reasons why I like putting packaging metadata into an executable setup.py is the ability to have optional dependencies that are combinations of others. As of pip 21.2, this is possible without running code. -
Extract a New Open Source Package - Building SaaS with Python and Django #140
In this episode, I pulled out code from homeschool application and started a new open source project for a portion that I thought would be useful for others. The new package, which I have called django-denied, is a way of handling authorization in your Django apps. -
Django: How to let user download a file
<![CDATA[ Django: How to let user download a file In this post, we will look at how to download a file with Django. Specifically how to let users download ImageField or FileField content. While there are a few ways to accomplish this, using FileResponse works really well. The most basic version is as simple as returning the FileResponse from your view like this: return FileResponse(model.image.open()) Here the image property is ImageField on a model. This won’t download the file; rather the browser will open it in a new tab in most cases. A similar thing will also happen for other file types that browsers can preview. To download it, we should specify the as_attachment parameter: return FileResponse(model.image.open(), as_attachment=True) The downloaded file will keep whatever filename used during upload (assuming you aren’t generating those yourself during save), which may not be optimal. Custom filename Wanting to “override” the filename was the main reason for this blog post. It turns out, you can pass any filename you wish to FileResponse, and that is the one browser will use when saving the file. Passing the filename parameter will allow you to offer descriptive filenames and possibly avoid embarrassing moments. return FileResponse(model.image.open(), as_attachment=True, filename="Export.png") … -
Django News - Django 4.1 release candidate 1 released - Jul 22nd 2022
News Django 4.1 release candidate 1 released Django 4.1 release candidate 1 is the final opportunity for you to try out the profusion of new features before Django 4.1 is released. djangoproject.com Distinguished Service Award Granted to Naomi Ceder Naomi Ceder, a longtime Python activist, and organizer has been recognized with the PSF’s Distinguished Service Award. blogspot.com Sponsored Ad Hiring Senior Software Engineer- Backend Python Engineer (Remote) Collins Aerospace is hiring a Remote Senior Backend Python Engineer to support the Connected Aviation Solutions organization. For expedited referrals/questions, please send resume/CV to jason.bowman@collins.com or mention Jason Bowman in your application submission. rtx.com Articles How To Test Django Models (With Examples) A beginner-friendly guide to testing models that includes good ideas around what to test: slugs, uniqueness, date added defaults, etc. ctrlzblog.com It’s Time to Say Goodbye to These Obsolete Python Libraries Forget about os.path, random, pytz, namedtuple and more and start using the latest and greatest Python libraries. plainenglish.io "Building the blog while flying it" Series Building the blog while flying it is a five-part series on adding Tailwind CSS to your projects. dev.to Tutorials The Great Continuum: Getting Started with the ButterCMS Django Starter Kit A tutorial on using the … -
Teacher Checklist Model - Building SaaS with Python and Django #139
In this episode, we created a new model for the teacher checklist feature that I recently added to my homeschool app. This new checklist model will enable users to filter out courses that appear on a teacher’s checklist. -
Django REST Framework (Ep5 Replay)
DRF Google GroupDjangoCon 2018 Talk: Finally Understand User Authentication in DRFDRF Official Documents: Authenticationdjango-cors-header packageSwagger vs OpenAPIAPI StarStarletteGraphQL vs RESTSPONSORING OPTIONSDRF SponsorsDjango Software FoundationSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter. -
Lightweight Javascript Framework Review (For Django Developers)
I will talk and compare lightweight javascript frameworks, and help you decide which one is the best for your Django project. -
Django News - Forms in Django 4.0+ - Jul 15th 2022
News Announcing Our DjangoCon US 2022 Talks! DjangoCon US is a hybrid in-person and online experience this year with talks that will be a mix of given live in-person and some will be online first. DjangoCon Europe talks are also being announced now via Twitter: https://twitter.com/DjangoConEurope djangocon.us Lead or organize a Development Sprint at DjangoCon US 2022! The last two days of DjangoCon US (this year, October 20-21) are devoted to Development Sprints. This blog post is targeted at current open source maintainers and contributors who are considering organizing or leading a Development Sprint at DCUS 2022. djangocon.us Python 3.11.0b4 released 3.11.0b4 is the fourth of five planned beta release previews. python.org PyPI to *soon* require 2FA and a Security Key Giveaway PyPI is implementing a 2FA requirement for critical projects, and distributing security keys to critical maintainers. pypi.org Sponsored Ad Mid/Senior Django Backend or Full-Stack Engineer at Boutique Digital Agency Type/Code designs and builds digital products and experiences, working with ambitious clients to bring powerful ideas to life. Our clients range from growing startups to cultural institutions to industry leaders, including Google, A24, MIT Media Lab, GE, MoMA, and Scholastic. We focus on conceiving, designing, and developing exceptional digital … -
Yes, I have opinions on your open source contributions
Recently the Python Package Index announced that they will be implementing new account-security policies, and hoo boy are some people ever worked up about it. This has already escalated to the author of at least one high-download-count package — one which was a dependency of pytest, thus likely to break a lot of people’s testing and CI right as the weekend started, always nice — deleting their package from PyPI out of anger and announcing … Read full entry -
Django News - Django security releases issued: 4.0.6 and 3.2.14 - Jul 8th 2022
News Django security releases issued: 4.0.6 and 3.2.14 A potential SQL injection was recently found and fixed with this security release. All users of Django should upgrade as soon as possible. djangoproject.com Python Software Foundation News: Board Election Results for 2022! Congratulations to everyone who won a seat on the PSF Board! blogspot.com Announcing Python Software Foundation Fellow Members for Q2 2022! 🎉 The PSF is pleased to announce its second batch of PSF Fellows for 2022! The list includes DSF Fellow Carlton Gibson. blogspot.com Quart is now a Pallets project A very positive development in the Flask ecosystem: Quart, an ASGI re-implementation of the Flask API has joined the Pallets organization and the long term aim is to merge Quart and Flask to bring ASGI support directly to Flask. palletsprojects.com Sponsored Ad Mid/Senior Django Backend or Full-Stack Engineer at Boutique Digital Agency Type/Code designs and builds digital products and experiences, working with ambitious clients to bring powerful ideas to life. Our clients range from growing startups to cultural institutions to industry leaders, including Google, A24, MIT Media Lab, GE, MoMA, and Scholastic. We focus on conceiving, designing, and developing exceptional digital experiences across a wide range of mediums. typecode.com … -
Panel interviews don't work
There’s a Right Way to conduct job interviews: one-on-one, with a single interviewer per interview session. If you need multiple interviewers (you probably do), schedule multiple sessions, each one-on-one. The alternate approach, panel interviews – having multiple interviewers in a session at once – is almost always a bad practice. It increases stress on the candidate, risks measuring the wrong things, and doesn’t lead to better results. Avoid panel interviews: they don’t work. -
Pointer Podcast - 108
The Pointer Podcast is an Italian podcast dedicated to technology and innovation enthusiasts. -
htmx - Carson Gross (Ep95 Replay)
htmx@htmx_org on TwitterhyperscriptBig Sky Softwaredjango-htmxRapid Prototyping with Django, htmx, and Tailwind CSSSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter. -
Checking References: What to do if a reference check goes wrong
Most of the time, reference checks go very well: you only turn up information that confirms your decision to hire this candidate. But sometimes — maybe about 10% of the time — the reference will tell you something concerning. Here’s what to do if that happens. -
Einladung zur Django-UserGroup Hamburg am 13. Juli
Das nächste Treffen der Django-UserGroup Hamburg findet am Mittwoch, den 13.07.2022 um 18:30 statt. Achtung: Neue Location! Dieses Mal treffen wir uns in den Räumen der Hatraco GmbH, Peutestraße 22a in 20539 Hamburg. Auf diesem Treffen gibt es einen Vortrag über Django und GraphQL. Eingeladen ist wie immer jeder der Interesse hat sich mit anderen Djangonauten auszutauschen. Eine Anmeldung ist nicht erforderlich, hilft aber sehr bei der Planung. Die Organisation der Django-UserGroup Hamburg findet über Meetup statt. Um sich anzumelden und automatisch über zukünftige Treffen informiert zu werden, werdet bitte Mitglied in unserer Meetup-Gruppe: http://www.meetup.com/django-hh Weitere Informationen über die UserGroup gibt es auf unserer Webseite www.dughh.de. -
eBook: The Definitive Guide to Hotwire and Django
You will learn building modern web applications with Hotwire, Tailwind CSS and Django. -
The PyCon Italia 2022 multiplicity
More than two years after the latest edition, this year the PyCon Italia conference took place again in person, and at the 2022 edition I participated in multiple roles, all interesting and enriching for me. -
Django News - 2022 Campaign Results - Jul 1st 2022
News PyCharm & DSF Campaign 2022 Results The sixth annual JetBrains PyCharm promotion in June netted the Django Software Foundation $25,000 this year. djangoproject.com 🚨 Django 4.0.6 and 3.2.14 high severity security releases on July 4th Mariusz Felisiak gave everyone a heads up to look for a Django 4.0.6 and 3.2.14 high severity security update on July 4th. twitter.com Sponsored Ad Django GDPR Cookie Consent Highly customizable Django app to make your Django website compatible with GDPR Cookie law. gumroad.com Articles Forms in Django 4.0+ Django 4.0 made rendering forms more flexible using the template engine. David Smith shows us how to render forms and highlights what features to expect in Django 4.1. github.io How to set up Webpack and TailwindCSS in a Django Project A guide to one-time guide setting up Webpack and Tailwind CSS to work with a Django application. builtwithdjango.com How to Run a Django Migration “By Hand” Adam Johnson shows us how to apply database migrations by hand using sqlmigrate and dbshell. adamj.eu Google Summer of Code 2022: One Month Progress The first post by one of this year's Google Summer of Code recepients, Deepak Dinesh, who is focusing on improving benchmarking within Django. medium.com Videos … -
Teacher Checklist Template - Building SaaS with Python and Django #138
In this episode, I started by finishing off some refactoring work that I began on the previous stream. Once that was wrapped up, I built the data for the teacher checklist wit the context data that I added in previous streams. -
How to Run a Django Migration “By Hand”
Normally your Django project’s deploy process runs the migrate command, and that takes care of updating your database as necessary. Especially on smaller databases, Django’s migration system can “just do it” for you. But sometimes it can be necessary to run migrations “by hand” in your database’s SQL console. I have found this to be the case with larger, busy databases, and when using tools like pt-online-schema-change to apply schema changes. In this post we’ll cover the process for running a migration by hand, and adapting it to reversing migrations. Run a Migration “By Hand” Hold onto your butts… 1. Find the SQL to run We write Django migrations in Python, but they ultimately end up running a series of SQL statements. To run a migration by hand, you need those SQL statements, so you can run them yourself. You can display the SQL for a migration with Django’s sqlmigrate command like: $ ./manage.py sqlmigrate <app> <prefix> This outputs each migration operation with a commented header describing what it does and then its actual statements. Replace <app> with the label of the app that the migration lives in. Replace <prefix> with a unique prefix of the migration’s name - normally … -
Django News - Django 4.1 beta 1 released - Jun 24th 2022
News Django 4.1 beta 1 released Django 4.1 beta 1 is now available. It represents the second stage in the 4.1 release cycle and is an opportunity for you to try out the changes coming in Django 4.1. djangoproject.com 2022 Python Software Foundation Board Elections Just a reminder that if you are a registered member of the Python Software Foundation, you may vote in this year's election until June 30th, 2022 AoE. python.org Get paid to contribute to urllib3 Announcing urllib3's bounty program. sethmlarson.dev Sponsored Ad Affordable Heroku-like experience for Django. Spin up a production-ready Django application, Postgres DB, and Redis in 5 minutes on AWS, DO, or any other provider. appliku.com Articles Customizable Django Admin themes Arpit shows us how to quickly use django-admin-interface to customize the Django Admin's color scheme and how to load custom themes. dev.to Six things I do every time I start a Django project Everyone approaches starting a project differently, and this was a fun read to see how Brenton Cleeland does it. This topic might make a fun Django Forum thread too. brntn.me How to Find and Stop Running Queries on PostgreSQL A look at stopping PostgreSQL queries via SQL, techniques for finding … -
Checking References: How to Check References
Part two of my reference check series, covering the nuts and bolts of conducting a reference check. When should you check references? How many? How should you contact references? What questions should you ask? -
Refactoring and New Features - Building SaaS with Python and Django #137
In this episode, I continued on the teacher checklist for the homeschooling app. We added data to the context and this required some refactoring to be able to reuse data from other parts of the app. -
How to Patch Requests to Have a Default Timeout
Python’s requests package is very popular. Even if you don’t use it directly, it’s highly likely one of your dependencies does. One wrinkle in requests’ design is that it has no default timeout. This means that requests can hang forever if the remote server doesn’t respond, unless the author remembered to add a timeout. Issue #3070 tracks the discussion on adding such a default timeout, but it has been open several years. httpx learned a lesson from this and it has default timeout of five seconds. This “missing default” has caused several production incidents at my client ev.energy. Remote server outages caused background tasks to take 45 minutes instead of 4.5 seconds, waiting for responses that wouldn’t come. This caused other important background work to be delayed, with knock-on effects. Auditing the codebase to add missing timeout parameters only got so far. New third party and first party code “slipped through the net” and was deployed without a timeout. I came up with a solution to change requests to use a default timeout. I did so with patchy, my package for patching the source code of functions at runtime. Patchy provides an alternative to monkey-patching with a few advantages: it …